1
1
mirror of https://github.com/theoludwig/react-component-form.git synced 2024-07-17 07:30:13 +02:00

ci: update node.js to cache dependencies

This commit is contained in:
divlo 2020-10-29 16:47:15 +01:00
parent 3dfcdaf81f
commit 75221c24f6
2 changed files with 13 additions and 17 deletions

View File

@ -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'

View File

@ -20,5 +20,16 @@ jobs:
uses: actions/setup-node@v2.1.2
with:
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') }}