5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00

ci: cache npm dependencies on CI

This commit is contained in:
Wagner Santos 2020-08-22 05:41:06 -03:00
parent 7ccafb1f5f
commit 7dc04121c2

View file

@ -10,6 +10,14 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: '12.x' node-version: '12.x'
- uses: actions/cache@v2
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install - run: npm install
- run: npm test -- --ci --coverage - run: npm test -- --ci --coverage
release: release: