Skip to content

Update actions usage in deploy-staging workflow #25

Update actions usage in deploy-staging workflow

Update actions usage in deploy-staging workflow #25

Workflow file for this run

name: Test Latest Commit
on:
push:
branches-ignore:
- staging
- production
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --unhandled-rejections=strict
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v2
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test