Skip to content

Commit

Permalink
Add cache usage to the node.js starter-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimZhukov committed Jun 30, 2021
1 parent 27a54d9 commit 1edda09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/node.js.yml
@@ -1,4 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
Expand All @@ -25,6 +25,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit 1edda09

Please sign in to comment.