Skip to content

Commit 8944de1

Browse files
committed
ci: optimize e2e test speed
1 parent aa4035e commit 8944de1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ jobs:
103103

104104
playwright_e2e_tests:
105105
name: Playwright E2E test
106+
timeout-minutes: 15
106107
runs-on: ubuntu-latest
108+
container:
109+
image: mcr.microsoft.com/playwright:v1.55.1-noble
110+
options: --user 1001
107111
steps:
108-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@v5
109113

110114
- uses: pnpm/action-setup@v4
111115
with:
@@ -120,9 +124,6 @@ jobs:
120124
- name: Install dependencies
121125
run: pnpm install
122126

123-
- name: Install playwright binary
124-
run: pnpm playwright install --with-deps
125-
126127
- name: E2E test
127128
run: pnpm test:playwright
128129

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"devDependencies": {
3636
"@mutoe/eslint-config": "^4.11.0-2",
3737
"@pinia/testing": "^1.0.2",
38-
"@playwright/test": "^1.55.1",
38+
"@playwright/test": "1.55.1",
3939
"@testing-library/cypress": "^10.1.0",
4040
"@testing-library/user-event": "^14.6.1",
4141
"@testing-library/vue": "^8.1.0",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)