Use "nodenext" for module option #160
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |