Skip to content

Commit c98b447

Browse files
committed
Update GitHub Actions workflow to replace 'npm ci' with 'npm install' for dependency installation and consolidate global dependency commands into a single line. This enhances clarity and consistency in the testing setup.
1 parent 2bdb978 commit c98b447

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/deployment.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ jobs:
3232
restore-keys: |
3333
${{ runner.os }}-node-
3434
- name: Install dependencies
35-
run: npm ci
36-
- name: Install global dependencies
3735
run: |
38-
npm install -g @web/test-runner
39-
npm install -g @web/test-runner-playwright
36+
npm install
37+
npm install -g @web/test-runner @web/test-runner-playwright
4038
- name: Install Playwright browsers
4139
run: npx playwright install --with-deps
4240
- name: Run tests
@@ -57,11 +55,9 @@ jobs:
5755
restore-keys: |
5856
${{ runner.os }}-node-
5957
- name: Install dependencies
60-
run: npm ci
61-
- name: Install global dependencies
6258
run: |
63-
npm install -g @web/test-runner
64-
npm install -g @web/test-runner-playwright
59+
npm install
60+
npm install -g @web/test-runner @web/test-runner-playwright
6561
- name: Install Playwright browsers
6662
run: npx playwright install --with-deps
6763
- name: Run tests
@@ -88,7 +84,7 @@ jobs:
8884
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
8985
restore-keys: |
9086
${{ runner.os }}-node-
91-
- run: npm ci
87+
- run: npm install
9288
- name: Read version from package.json
9389
uses: culshaw/read-package-node-version-actions@v1
9490
id: package-node-version

0 commit comments

Comments
 (0)