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

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