* misc updates * bring back c8 for test coverage * use new loader * don't use engines * simplify ci * fix double slice problem
33 lines
657 B
YAML
33 lines
657 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
paths:
|
|
- "**.js"
|
|
- "package.json"
|
|
- ".github/workflows/ci.yml"
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
node: ["17.3"]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '17.3'
|
|
- run: npm install
|
|
- run: npm test
|
|
- run: npm run report -- --colors
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage/coverage-final.json
|