Actions: add npm cache (#29765)
This commit is contained in:
parent
c26636d56b
commit
9c784e45f1
1 changed files with 10 additions and 0 deletions
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
|
@ -26,6 +26,16 @@ jobs:
|
||||||
- run: npm --version
|
- run: npm --version
|
||||||
- run: java -version
|
- run: java -version
|
||||||
|
|
||||||
|
- name: Set up npm cache
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.npm
|
||||||
|
key: ${{ runner.os }}-node-v{{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-node-v{{ matrix.node }}-${{ env.cache-name }}-
|
||||||
|
${{ runner.OS }}-node-v{{ matrix.node }}-
|
||||||
|
${{ runner.OS }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue