Skip to content

Commit

Permalink
ci: cache deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jan 15, 2021
1 parent 2d5d64e commit f2a6138
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache dependencies
id: cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', './yarn.lock') }}
- name: Install packages
run: yarn --no-progress --non-interactive --no-lockfile
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile --prefer-offline
- name: Run integration tests
run: yarn test:integration

0 comments on commit f2a6138

Please sign in to comment.