-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efdf874
commit 2a40803
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |