Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
ci(workflow): add cache to workflows using actions/setup-node (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Jul 21, 2021
1 parent fc1eb3b commit 938ddb1
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ jobs:
node-version: [10, 12, 14]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install
- run: npm test
env:
CI: true
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: 'npm i && npm run lint'
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: npm
- run: 'npm i && npm run lint'

0 comments on commit 938ddb1

Please sign in to comment.