Add caching for NodeJS

This commit is contained in:
rugk 2021-10-02 00:55:08 +02:00 committed by GitHub
parent a372ee92e9
commit b80732f8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -93,9 +93,11 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: '12'
cache: 'npm'
cache-dependency-path: 'js/package-lock.json'
- name: Setup Mocha - name: Setup Mocha
run: npm install -g mocha run: npm install -g mocha