Skip to content

Commit

Permalink
chore: cache in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jan 14, 2021
1 parent 3c7a5e0 commit 4bb996d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,27 @@ jobs:
uses: zcong1993/setup-timezone@master
with:
timezone: Asia/Shanghai

- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v2
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- run: npm test

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
Expand Down

0 comments on commit 4bb996d

Please sign in to comment.