Skip to content

Commit 10eefcc

Browse files
authored
chore(ci): update playwright e2e runner (#1829)
1 parent 5238a34 commit 10eefcc

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

.github/workflows/test-e2e.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,27 @@ on:
77

88
permissions:
99
contents: read
10+
11+
concurrency:
12+
group: e2e-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
e2e:
1217
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
container:
20+
# Keep this tag aligned with the Playwright version in bun.lock.
21+
image: mcr.microsoft.com/playwright:v1.60.0-noble
22+
options: --ipc=host
1323

1424
steps:
1525
- name: Check out repository
1626
uses: actions/checkout@v6
1727

28+
- name: Install Bun setup prerequisites
29+
run: apt-get update && apt-get install -y --no-install-recommends unzip
30+
1831
- name: Set up Node.js
1932
uses: actions/setup-node@v6
2033
with:
@@ -36,10 +49,12 @@ jobs:
3649
- name: Install dependencies
3750
run: bun install --frozen-lockfile
3851

39-
- name: Install Playwright browsers
40-
run: bunx playwright install --with-deps chromium
52+
- name: Verify Playwright browser install
53+
timeout-minutes: 3
54+
run: bunx playwright install chromium
4155

4256
- name: Run e2e tests
57+
timeout-minutes: 8
4358
env:
4459
TZ: Etc/UTC
4560
GOOGLE_CLIENT_ID: test-client-id

bun.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@babel/preset-react": "^7.16.7",
5151
"@babel/preset-typescript": "^7.16.0",
5252
"@biomejs/biome": "^2.4.12",
53-
"@playwright/test": "^1.56.0",
53+
"@playwright/test": "^1.60.0",
5454
"@types/node": "^22.13.10",
5555
"@types/node-fetch": "^2.6.13",
5656
"jest": "^29.0.3",

0 commit comments

Comments
 (0)