Skip to content

Include Github Action to run tests on pushes #1

Include Github Action to run tests on pushes

Include Github Action to run tests on pushes #1

Workflow file for this run

name: Run Unit Tests
on:
push:
branches:
- "**" # This will run the action on push to any branch
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
- name: Get files
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test:ci