Skip to content

Commit

Permalink
Actions: add npm cache (#29765)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 13, 2019
1 parent c26636d commit 9c784e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -26,6 +26,16 @@ jobs:
- run: npm --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
run: npm ci

Expand Down

0 comments on commit 9c784e4

Please sign in to comment.