ci: update node.js to cache dependencies
This commit is contained in:
parent
3dfcdaf81f
commit
75221c24f6
15
.github/dependabot.yml
vendored
15
.github/dependabot.yml
vendored
@ -1,15 +0,0 @@
|
|||||||
# For more information see: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: 'github-actions'
|
|
||||||
directory: '/'
|
|
||||||
schedule:
|
|
||||||
interval: 'monthly'
|
|
||||||
|
|
||||||
- package-ecosystem: 'npm'
|
|
||||||
versioning-strategy: 'auto'
|
|
||||||
directory: '/'
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
schedule:
|
|
||||||
interval: 'monthly'
|
|
15
.github/workflows/node.js.yml
vendored
15
.github/workflows/node.js.yml
vendored
@ -20,5 +20,16 @@ jobs:
|
|||||||
uses: actions/setup-node@v2.1.2
|
uses: actions/setup-node@v2.1.2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm ci
|
|
||||||
- run: npm run test
|
- name: 'Install dependencies'
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: 'Run the tests'
|
||||||
|
run: npm test
|
||||||
|
|
||||||
|
- name: 'Cache dependencies'
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
**/node_modules
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
Reference in New Issue
Block a user