Skip to content

Commit a59b9c8

Browse files
author
Shane Osbourne
committed
running playwright in CI
1 parent b8172ab commit a59b9c8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ jobs:
4343
sudo apt-get install xvfb
4444
npm install
4545
npm run build
46+
- name: Install Playwright Browsers
47+
run: npx playwright install --with-deps
4648
- run: npm run test-int-x

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
"test-int-x": "xvfb-run --server-args='-screen 0 1024x768x24' npm run test-int",
3232
"test-clean-tree": "npm run build && sh scripts/check-for-changes.sh",
3333
"test": "npm run lint && npm run lint-no-output-globals && npm run test-unit && npm run test-int",
34-
"posttest": "npm run test --workspaces --if-present"
34+
"posttest": "npm run test --workspaces --if-present",
35+
"posttest-int": "npm run test-int --workspaces --if-present",
36+
"posttest-int-x": "npm run test-int-x --workspaces --if-present"
3537
},
3638
"type": "module",
3739
"workspaces": [

packages/special-pages/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"type": "module",
77
"scripts": {
88
"build": "node index.js",
9-
"test": "playwright test",
9+
"test": "echo '✅ No tests yet'",
1010
"test.headed": "playwright test --headed",
11+
"test-int-x": "playwright test",
12+
"test-int": "playwright test",
1113
"serve": "serve pages -p 3210"
1214
},
1315
"license": "ISC",

0 commit comments

Comments
 (0)