Skip to content

Create SECURITY.md

Create SECURITY.md #22

Workflow file for this run

name: Tests
# This workflow runs standard unit tests to ensure basic integrity and avoid
# regressions on pull-requests (and pushes)
on:
push:
branches:
- master
pull_request:
jobs:
unittest:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v3
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test
# TODO: replace prior line with the following, once coverage is implemented
# - run: npm run test:coverage
# with the following action we enforce PRs to have a certain coverage
# and ensure, changes are tested well enough so that coverage won't fail
# - name: check coverage
# uses: VeryGoodOpenSource/[email protected]
# with:
# path: './coverage/lcov.info'
# # TODO increase this, once coverage is at a sufficient level
# min_coverage: 30