Skip to content

Commit db06a1a

Browse files
committed
Another attempt at e2e test timeouts
We use a container now and Node 22, instead of 24, to avoid known problems. Signed-off-by: Mike Lischke <mike@lischke-online.de>
1 parent 816378b commit db06a1a

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,24 @@ on:
1010
jobs:
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

@@ -54,6 +41,7 @@ jobs:
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()
@@ -62,3 +50,4 @@ jobs:
6250
name: playwright-test-results
6351
path: test-results/
6452
if-no-files-found: ignore
53+
retention-days: 7

0 commit comments

Comments
 (0)