Skip to content

Use "nodenext" for module option #160

Use "nodenext" for module option

Use "nodenext" for module option #160

Workflow file for this run

on: push
name: CI
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm install
run: npm install
- name: lint
run: npm run lint
- name: check test completeness
run: |
missing_tests=$(for f in $(find src -mindepth 1 -maxdepth 1 -type f -name '*.mts' -exec basename {} .mts ';'); do if ! test -e "tests/${f}.test.js"; then echo "Missing test for src/${f}.mts"; fi; done);
test -z "${missing_tests}" || (echo "${missing_tests}"; false)
- name: compile typescript
run: tsc
- name: test
run: npx c8 npx jest
- name: coverage
run: npx c8 check-coverage --lines 100 --functions 100 --branches 100 --statements 100