Skip to content

Commit

Permalink
Archive test evidences
Browse files Browse the repository at this point in the history
Diego Martinez committed Oct 3, 2024

Verified

This commit was signed with the committer’s verified signature.
djhi Gildas Garcia
1 parent 48fafb0 commit ffb2fcd
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -11,23 +11,42 @@ jobs:
name: Execute Tests
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Build solution
shell: cmd
run: mvn clean package -DskipTests -Dstyle.color=always
- name: Build solution
shell: cmd
run: mvn clean package -DskipTests -Dstyle.color=always

- name: Run WEB tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@WEB"
api-tests:
name: API
runs-on: windows-latest
needs:
- build
steps:
- name: Run API tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@API"

web-tests:
name: WEB
runs-on: windows-latest
needs:
- build
steps:
- name: Run WEB tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@WEB"

- name: Run API tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@API"
- name: Archive test evidences
if: always()
uses: actions/upload-artifact@v4
with:
name: web-test-evidences
path: 'C:\temp\selenoid\video'

0 comments on commit ffb2fcd

Please sign in to comment.