Skip to content

Commit

Permalink
chore(github-actions): Update to latest cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Nov 23, 2020
1 parent 52e0b16 commit 78ec718
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: docker-compose -f ./examples/docker-compose.yml up -d
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Restore Dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.npm
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{matrix.node-version}}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{matrix.node-version}}-
Expand Down

0 comments on commit 78ec718

Please sign in to comment.