Skip to content

Commit 3eb315c

Browse files
committed
Refactor GitHub Actions workflow to remove the Playwright GitHub Action and streamline the installation process. Consolidate Playwright installation commands for improved clarity and ensure all necessary dependencies are installed before running tests.
1 parent c98b447 commit 3eb315c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deployment.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- uses: actions/setup-node@v1
2525
with:
2626
node-version: 18
27-
- uses: microsoft/playwright-github-action@v1
2827
- uses: actions/cache@v3
2928
with:
3029
path: ~/.npm
@@ -35,8 +34,10 @@ jobs:
3534
run: |
3635
npm install
3736
npm install -g @web/test-runner @web/test-runner-playwright
38-
- name: Install Playwright browsers
39-
run: npx playwright install --with-deps
37+
- name: Install Playwright
38+
run: |
39+
npx playwright install
40+
npx playwright install-deps
4041
- name: Run tests
4142
run: npm run test
4243
test_win:
@@ -47,7 +48,6 @@ jobs:
4748
- uses: actions/setup-node@v1
4849
with:
4950
node-version: 18
50-
- uses: microsoft/playwright-github-action@v1
5151
- uses: actions/cache@v3
5252
with:
5353
path: ~/.npm
@@ -58,8 +58,10 @@ jobs:
5858
run: |
5959
npm install
6060
npm install -g @web/test-runner @web/test-runner-playwright
61-
- name: Install Playwright browsers
62-
run: npx playwright install --with-deps
61+
- name: Install Playwright
62+
run: |
63+
npx playwright install
64+
npx playwright install-deps
6365
- name: Run tests
6466
run: npm run test
6567
tag:

0 commit comments

Comments
 (0)