Skip to content

CI: Configure unit tests in CI #2

CI: Configure unit tests in CI

CI: Configure unit tests in CI #2

Workflow file for this run

name: 'Run tests'
on: [push, workflow_dispatch, pull_request]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
# TODO: add version to a .nvmrc or at least a variable
node-version: 16.13.x
cache: npm
- name: Install
run: npm ci
- name: Run tests
run: npm run test:unit