Skip to content

test: Update mocha config #519

test: Update mocha config

test: Update mocha config #519

Workflow file for this run

name: Test Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
prepare_matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.generate-matrix.outputs.lts }}
steps:
- name: Select all current LTS versions of Node.js
id: generate-matrix
uses: msimerson/node-lts-versions@v1
validate-tests:
runs-on: macos-latest
needs:
- prepare_matrix
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build project including tests
run: npm run build
- name: Run unit tests
run: npm run test:unit