Skip to content

Commit f7a73ef

Browse files
committed
feat: add test browser installation step and update script for consistency
1 parent 0fef352 commit f7a73ef

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- name: Install dependencies
1919
run: npm ci
2020

21+
- name: Install test browsers
22+
run: node --run install:test-browsers
23+
2124
- name: Lint
2225
run: npm run lint
2326

@@ -43,9 +46,10 @@ jobs:
4346
cache: 'npm'
4447

4548
- name: Install dependencies
46-
run: |
47-
npm ci
48-
node --run install:e2e-browsers
49+
run: npm ci
50+
51+
- name: Install test browsers
52+
run: node --run install:test-browsers
4953

5054
- name: Build
5155
run: npm run build

apps/web/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
"@types/uuid": "10.0.0",
4747
"@types/wicg-file-system-access": "2023.10.5",
4848
"@vitejs/plugin-react": "6.0.1",
49-
"@vitest/browser": "4.1.4",
50-
"@vitest/browser-playwright": "4.1.4",
5149
"vite": "8.0.8"
5250
}
5351
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"check-types": "turbo check-types",
2323
"e2e": "turbo e2e",
2424
"ci:e2e": "turbo ci:e2e",
25-
"install:e2e-browsers": "npx playwright install",
25+
"install:test-browsers": "npx playwright install --with-deps",
2626
"lint": "oxlint .",
2727
"lint:fix": "oxlint --fix .",
2828
"format": "prettier --write .",

tooling/vitest/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
},
1010
"devDependencies": {
1111
"@testing-library/jest-dom": "6.9.1",
12+
"@vitest/browser": "4.1.4",
13+
"@vitest/browser-playwright": "4.1.4",
1214
"@vitest/coverage-v8": "4.1.4",
15+
"@vitest/ui": "4.1.4",
16+
"playwright": "1.59.1",
1317
"vitest": "4.1.4"
1418
}
1519
}

0 commit comments

Comments
 (0)