File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -14,30 +14,25 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
- # Cache node_modules to speed up subsequent runs
18
- - name : Cache node_modules
19
- uses : actions/cache@v3
20
- with :
21
- path : node_modules
22
- key : ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
23
- restore-keys : |
24
- ${{ runner.os }}-node-modules-
17
+ - name : Install xvfb
18
+ run : sudo apt-get install -y xvfb
19
+
25
20
- uses : actions/setup-node@v4
26
21
with :
27
- node-version : lts/* # Or specify a specific version like 18 or 20
22
+ node-version : lts/*
28
23
29
24
- name : Install dependencies
30
- run : npm ci # Ensure your package.json and package-lock.json are in sync
25
+ run : npm ci
31
26
32
27
- name : Install Playwright Browsers
33
28
run : npx playwright install --with-deps
34
29
35
30
- name : Run Playwright tests
36
- run : npx playwright test
31
+ run : xvfb-run npx playwright test # Run the tests with xvfb
37
32
38
33
- uses : actions/upload-artifact@v4
39
34
if : ${{ !cancelled() }}
40
35
with :
41
36
name : playwright-report
42
37
path : reports/playwright-report/
43
- retention-days : 30
38
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments