|
9 | 9 | name: Java CI with Maven |
10 | 10 |
|
11 | 11 | on: |
12 | | - push: |
13 | | - branches: [ "main" ] |
14 | | - pull_request: |
15 | | - branches: [ "main" ] |
| 12 | + push: |
| 13 | + branches: [ "main" ] |
| 14 | + pull_request: |
| 15 | + branches: [ "main" ] |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - build: |
19 | | - |
20 | | - strategy: |
21 | | - fail-fast: false |
22 | | - matrix: |
23 | | - browser: [chromium, firefox] |
24 | | - runs-on: windows-latest |
25 | | - |
26 | | - steps: |
27 | | - - uses: actions/checkout@v3 |
28 | | - - name: Set up JDK 17 |
29 | | - uses: actions/setup-java@v3 |
30 | | - with: |
31 | | - distribution: 'temurin' |
32 | | - java-version: '17' |
33 | | - - uses: actions/setup-node@v3 |
34 | | - with: |
35 | | - node-version: 14 |
36 | | - - run: npx playwright install --with-deps ${{ matrix.browser }} chromium |
37 | | - - uses: actions/upload-artifact@v3 |
38 | | - with: |
39 | | - name: ${{ matrix.browser }}-win-test-results |
40 | | - path: test-results |
41 | | - - name: Build & Install |
42 | | - run: mvn -B install -D skipTests --no-transfer-progress |
43 | | - - name: Run Tests with Maven |
44 | | - run: mvn clean test --file pom.xml |
45 | | - |
46 | | - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive |
47 | | - - name: Update dependency graph |
48 | | - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 |
| 18 | + build: |
| 19 | + |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + browser: [ chromium, firefox ] |
| 24 | + runs-on: windows-latest |
| 25 | + |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + - name: Set up JDK 17 |
| 29 | + uses: actions/setup-java@v4 |
| 30 | + with: |
| 31 | + distribution: 'temurin' |
| 32 | + java-version: '17' |
| 33 | + - uses: actions/setup-node@v4 |
| 34 | + with: |
| 35 | + node-version: 20 |
| 36 | + - run: npx playwright install --with-deps ${{ matrix.browser }} chromium |
| 37 | + - uses: actions/upload-artifact@v4 |
| 38 | + with: |
| 39 | + name: ${{ matrix.browser }}-win-test-results |
| 40 | + path: test-results |
| 41 | + - name: Build & Install |
| 42 | + run: mvn -B install -D skipTests --no-transfer-progress |
| 43 | + - name: Run Tests with Maven |
| 44 | + run: mvn clean test --file pom.xml |
| 45 | + |
| 46 | + - name: Upload Extent Report |
| 47 | + if: always() |
| 48 | + uses: actions/upload-artifact@v4 |
| 49 | + with: |
| 50 | + name: extent-report |
| 51 | + path: exports/ExtentReport/ExtentReport.html |
| 52 | + |
| 53 | + - name: Upload Tracing zip file |
| 54 | + if: always() |
| 55 | + uses: actions/upload-artifact@v4 |
| 56 | + with: |
| 57 | + name: trace-zip |
| 58 | + path: exports/tracing |
| 59 | + |
| 60 | + - name: Upload videos for tests |
| 61 | + if: always() |
| 62 | + uses: actions/upload-artifact@v4 |
| 63 | + with: |
| 64 | + name: test-videos |
| 65 | + path: exports/VideoRecords |
| 66 | + |
| 67 | + - name: Upload screenshots for tests |
| 68 | + if: always() |
| 69 | + uses: actions/upload-artifact@v4 |
| 70 | + with: |
| 71 | + name: test-screenshots |
| 72 | + path: exports/Screenshots/ |
| 73 | + |
| 74 | + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive |
| 75 | + - name: Update dependency graph |
| 76 | + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 |
0 commit comments