This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Revert to npm
#266
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 | |
- 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: tsc | |
- name: test | |
run: npm run test | |
- name: coverage | |
run: npx c8 check-coverage --lines 99 --functions 99 --branches 99 --statements 99 | |
- name: examples do not crash | |
run: for f in examples/*.js; do node $f || exit 1; done |