Skip to content

Commit ddef3eb

Browse files
authored
fix(ci): revise playwright install for CI (less#4322)
* Revise Playwright install method for CI to avoid browser binary mismatch issues.
1 parent 628dbaf commit ddef3eb

File tree

3 files changed

+6045
-4813
lines changed

3 files changed

+6045
-4813
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
run: pnpm install
4343
- name: Print put node & npm version
4444
run: node --version && pnpm --version
45+
# Pin the version of Playwright to match package.json to avoid installing a newer version which may expect different binaries
4546
- name: Install chromium
46-
run: npx playwright install chromium
47+
run: npx playwright@1.50.1 install chromium
4748
- name: Run unit test
4849
run: pnpm run test

packages/less/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"less-plugin-clean-css": "^1.6.0",
8585
"minimist": "^1.2.0",
8686
"mocha": "^6.2.1",
87-
"playwright": "^1.49.0",
87+
"playwright": "~1.50.1",
8888
"mocha-teamcity-reporter": "^3.0.0",
8989
"nock": "^11.8.2",
9090
"npm-run-all": "^4.1.5",

0 commit comments

Comments
 (0)