Skip to content

Commit f6855d6

Browse files
feat: install chromium before running playwright
1 parent 834d390 commit f6855d6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'CI'
1+
name: "CI"
22

33
on:
44
push:
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
npmcmd: ['test']
21+
npmcmd: ["test"]
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Configure
@@ -27,8 +27,6 @@ jobs:
2727
git config --global user.name uirouter_github_actions
2828
- name: Install Dependencies
2929
run: npm ci
30-
- name: Install Playwright Browsers
31-
run: npx playwright install chromium
3230
- name: Check Peer Dependencies
3331
run: npx check-peer-dependencies
3432
- name: Run Tests

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"start": "vite",
99
"build": "vite build",
1010
"preview": "vite preview",
11-
"test": "npm run build && playwright test",
12-
"test:ui": "npm run build && playwright test --ui",
11+
"test": "npx playwright install chromium && npm run build && playwright test",
12+
"test:ui": "npx playwright install chromium && npm run build && playwright test --ui",
1313
"test:report": "playwright show-report",
1414
"gh-pages": "npm run build && git add docs && git commit -m 'update github pages' docs && git push"
1515
},

0 commit comments

Comments
 (0)