Skip to content

Commit 8985dbc

Browse files
committed
Update Playwright 1.52.0 and Parallel Execution stable
1 parent f9e60aa commit 8985dbc

File tree

1 file changed

+63
-35
lines changed

1 file changed

+63
-35
lines changed

.github/workflows/maven.yml

Lines changed: 63 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,68 @@
99
name: Java CI with Maven
1010

1111
on:
12-
push:
13-
branches: [ "main" ]
14-
pull_request:
15-
branches: [ "main" ]
12+
push:
13+
branches: [ "main" ]
14+
pull_request:
15+
branches: [ "main" ]
1616

1717
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

Comments
 (0)