From 2a408030b54a7d1fd4159cf359dd8aacab7c5f83 Mon Sep 17 00:00:00 2001 From: AmolKadam-Tekdi Date: Mon, 8 Jul 2024 11:49:05 +0530 Subject: [PATCH] all_Automation_Git_Actions --- .github/workflows/all-automation.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) 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