Skip to content

19.0.0

19.0.0 #424

Workflow file for this run

---
on: push
name: CI
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 20
- name: check node version
run: node --version
- name: check npm version
run: npm --version
- name: check npx path
run: which npx
- name: check npx version
run: npx --version
- name: npm install
run: npm install
- name: lint
run: npm run lint
- name: compile typescript
run: npx tsc
- name: test
run: npm run test
- name: generate coverage
run: npm run coverage
- name: check coverage
run: npx c8 check-coverage --lines 99 --functions 99 --branches 99 --statements 99
- name: examples do not crash
run: for f in examples/*.ts; do npx tsx "$f" || (echo "'$f' crashed"; exit 1); done