Skip to content

Commit

Permalink
fix: cache node_modules between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Dec 15, 2021
1 parent 78a84c7 commit 0a9490a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
tests:
runs-on: ubuntu-latest
needs: install
Expand All @@ -26,4 +29,8 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- run: npm run test

0 comments on commit 0a9490a

Please sign in to comment.