Skip to content

Commit 8c65e7e

Browse files
committed
Update GitHub Actions workflow to use npm ci for dependency installation and add Playwright installation step with required dependencies.
1 parent fb73f27 commit 8c65e7e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/deployment.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ jobs:
2525
with:
2626
node-version: 18
2727
cache: 'npm'
28-
- uses: microsoft/playwright-github-action@v1
2928
- name: Install dependencies
3029
run: |
3130
npm install -g [email protected]
32-
npm install
31+
npm ci
32+
- name: Install Playwright
33+
run: |
34+
npx playwright install --with-deps chromium firefox webkit
3335
npm install -g @web/test-runner
3436
- name: Run tests
3537
run: npm test
@@ -42,11 +44,13 @@ jobs:
4244
with:
4345
node-version: 18
4446
cache: 'npm'
45-
- uses: microsoft/playwright-github-action@v1
4647
- name: Install dependencies
4748
run: |
4849
npm install -g [email protected]
49-
npm install
50+
npm ci
51+
- name: Install Playwright
52+
run: |
53+
npx playwright install --with-deps chromium firefox webkit
5054
npm install -g @web/test-runner
5155
- name: Run tests
5256
run: npm test
@@ -67,7 +71,8 @@ jobs:
6771
node-version: '18'
6872
registry-url: 'https://registry.npmjs.org'
6973
cache: 'npm'
70-
- run: npm install
74+
- name: Install dependencies
75+
run: npm ci
7176
- name: Read version from package.json
7277
uses: culshaw/read-package-node-version-actions@v1
7378
id: package-node-version

0 commit comments

Comments
 (0)