Revert to object-based approach (#40) #165
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 99 --functions 99 --branches 99 --statements 99 |