Skip to content

Revert to object-based approach (#40) #165

Revert to object-based approach (#40)

Revert to object-based approach (#40) #165

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 99 --functions 99 --branches 99 --statements 99