Skip to content

1.6.0

1.6.0 #23

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- "master"
pull_request:
branches:
- "**"
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm ci
- name: npm test
run: npm run test
- name: nyc report
run: npm run test:report
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash) -F unit -s coverage/lcov.info