Skip to content

refactor(test): replaces mocha with node:test #58

refactor(test): replaces mocha with node:test

refactor(test): replaces mocha with node:test #58

Workflow file for this run

name: linting & test coverage
on:
push:
branches:
- main
pull_request:
env:
CI: true
defaults:
run:
shell: bash
jobs:
check:
strategy:
fail-fast: false
matrix:
node-version:
- 16.x
- 20.x
platform:
- ubuntu-latest
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- run: npm install
- run: npm run build
- run: npm run lint
if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '20.x'
- run: npm run depcruise
- run: npm test
if: matrix.node-version != '16.x'
- run: npm run test:only-for-node-16-without-the-test-reporter
if: matrix.node-version == '16.x'