Skip to content

Commit 8ac7197

Browse files
committed
Ensure playwright dependencies are installed
1 parent b9bfb4a commit 8ac7197

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: Playwright Tests
44
on:
55
push:
66
branches:
7-
- '**'
7+
- '**' # Run on every branch for every commit
88
pull_request:
99
branches:
10-
- '**'
10+
- '**' # Run on every pull request for any branch
1111

1212
jobs:
1313
test:
@@ -18,7 +18,12 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v3
2020

21-
# Step 2: Set up JDK 17
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20'
25+
26+
# Step 2: Set up JDK 17 (adjust if you're using a different version)
2227
- name: Set up JDK 17
2328
uses: actions/setup-java@v3
2429
with:
@@ -47,6 +52,9 @@ jobs:
4752
restore-keys: |
4853
${{ runner.os }}-maven
4954
55+
- name: Install Playwright dependencies
56+
run: npx playwright install-deps
57+
5058
# Step 6: Run Maven to execute Playwright tests
5159
- name: Run Playwright Tests
5260
run: mvn verify

0 commit comments

Comments
 (0)