Skip to content

Merge pull request #505 from takikawa/add-spec-tests #65

Merge pull request #505 from takikawa/add-spec-tests

Merge pull request #505 from takikawa/add-spec-tests #65

Workflow file for this run

name: Node.js
on:
pull_request:
branches: [master]
push:
branches: [master]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run lint
- run: npm run toc
- run: git diff --stat --exit-code
- run: npx prettier --check .
- run: npm run coverage
- run: npx c8 report --reporter=lcov
- uses: codecov/codecov-action@v3