Skip to content

Commit 0bb2e70

Browse files
ci: improve time (#522)
1 parent ba9a8e2 commit 0bb2e70

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,18 @@ jobs:
5353
cache: npm
5454

5555
- name: Install dependencies
56+
shell: bash
5657
run: |
57-
npm install -D typescript@^4 jest@^27 memfs@^3 --ignore-scripts
58-
npm install --ignore-scripts
58+
rm -f package-lock.json
59+
60+
npm config set progress false
61+
62+
if [ "${{ matrix.node-version }}" = "10.x" ]; then
63+
yarn add -D typescript@^4 jest@^27 memfs@^3 --ignore-scripts --ignore-engines
64+
else
65+
npm install -g npm@7
66+
npm install -D typescript@^4 jest@^27 memfs@^3 --ignore-scripts --no-audit --prefer-offline --no-save --no-package-lock
67+
fi
5968
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x'
6069

6170
- name: Install dependencies

0 commit comments

Comments
 (0)