Skip to content

Update actions/cache action to v3 #187

Update actions/cache action to v3

Update actions/cache action to v3 #187

Workflow file for this run

name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache
id: cache
uses: actions/cache@v3.3.3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
env:
CI: true
- name: npm test
run: npm test
env:
CI: true