diff --git a/.github/workflows/all-automation.yml b/.github/workflows/all-automation.yml index cc373197..0708dfc2 100644 --- a/.github/workflows/all-automation.yml +++ b/.github/workflows/all-automation.yml @@ -1,25 +1,28 @@ -name: ALL rig dev Deployment +name: Java CI with Maven and TestNG on: push: branches: - - all_Automation_Actions + - main + pull_request: + branches: + - main jobs: - deploy: + build: runs-on: ubuntu-latest steps: - - name: uses: actions/setup-java@v2 + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: + java-version: '11' - java-version: '17' - - distribution: 'adopt' - - cache: maven - - - name: Build with Maven + - name: Build with Maven + run: mvn clean install - run: mvn -B package --file testng.xml + - name: Run TestNG tests + run: mvn test -DsuiteXmlFile=testng.xml \ No newline at end of file