File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 playwright :
1212 runs-on : ubuntu-latest
13+ timeout-minutes : 30
14+
15+ container :
16+ image : mcr.microsoft.com/playwright:v1.59.1-noble
1317
1418 steps :
1519 - name : Checkout repository
1620 uses : actions/checkout@v4
1721
18- - name : Use Node.js 24
22+ - name : Setup Node.js
1923 uses : actions/setup-node@v4
2024 with :
21- node-version : 24 .x
25+ node-version : 22 .x
2226 cache : npm
2327
2428 - name : Install dependencies
2529 run : npm ci
2630
27- - name : Cache Playwright browsers
28- uses : actions/cache@v4
29- id : playwright-cache
30- with :
31- path : ~/.cache/ms-playwright
32- key : playwright-chromium-${{ hashFiles('package-lock.json') }}
33-
34- - name : Install Playwright system dependencies
35- run : npx playwright install-deps chromium
36-
37- - name : Install Playwright browser
38- if : steps.playwright-cache.outputs.cache-hit != 'true'
39- run : npx playwright install chromium
40- timeout-minutes : 5
41- env :
42- PLAYWRIGHT_SKIP_BROWSER_GC : " 1"
43-
4431 - name : Build app
4532 run : npm run build
4633
5441 name : playwright-report
5542 path : playwright-report/
5643 if-no-files-found : ignore
44+ retention-days : 7
5745
5846 - name : Upload Playwright test results
5947 if : always()
6250 name : playwright-test-results
6351 path : test-results/
6452 if-no-files-found : ignore
53+ retention-days : 7
You can’t perform that action at this time.
0 commit comments