Skip to content

Commit 907af21

Browse files
committed
Refactor GitHub Actions workflow to install Playwright and web-test-runner as development dependencies, ensuring local consistency. Update test execution commands to utilize npx for improved clarity and functionality.
1 parent e08e3a6 commit 907af21

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/deployment.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@ jobs:
3939
- name: Install dependencies
4040
run: |
4141
npm install
42-
npm install -g [email protected]
43-
npm install -g @web/[email protected] @web/[email protected]
44-
# Install browsers after playwright is installed globally
42+
npm install --save-dev @web/[email protected] @web/[email protected] [email protected]
43+
# Install browsers after playwright is installed
4544
- name: Install Playwright browsers
4645
run: |
47-
playwright install
48-
playwright install-deps
46+
npx playwright install
47+
npx playwright install-deps
4948
- name: Run tests
5049
run: |
51-
web-test-runner test/*.test.js --coverage --node-resolve
50+
npx web-test-runner test/*.test.js --coverage --node-resolve
5251
test_win:
5352
name: "Windows"
5453
runs-on: windows-latest

0 commit comments

Comments
 (0)