Skip to content

Commit

Permalink
Add module caching to GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Jan 21, 2020
1 parent 384732e commit 181a030
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci
- name: Pre-Test
run: |
Expand Down

0 comments on commit 181a030

Please sign in to comment.