Skip to content

chore(deps): pin dependencies #847

chore(deps): pin dependencies

chore(deps): pin dependencies #847

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
jest:
name: Jest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- name: Setup node env
uses: actions/setup-node@aa759c6c94d3800c55b8601f21ba4b2371704cb7 # v2.3.0
with:
node-version: 14
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Cache node_modules
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci --no-audit
- name: Run tests
run: npm run test