ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows

pull/3/head
Oscar Dominguez 4 years ago
parent 63abd0d521
commit aefa49fc34

@ -3,25 +3,25 @@ on:
push: push:
branches: branches:
- main - main
pull_request: pull_request: null
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set Node.JS
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- name: Set Node.JS - name: Install dependencies
uses: actions/setup-node@v2 run: npm install
with:
node-version: 12.x
- name: Install dependencies - name: Build
run: npm install run: npm run build
- name: Build - name: Run tests
run: npm run build run: npm run test
- name: Run tests
run: npm run test

Loading…
Cancel
Save