-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (35 loc) · 1.13 KB
/
push.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
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: build
run: npm run build
- 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