Skip to content

Merge pull request #20 from lenchv/patch/19-add-ts-types #49

Merge pull request #20 from lenchv/patch/19-add-ts-types

Merge pull request #20 from lenchv/patch/19-add-ts-types #49

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Run tests on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install
npm run test
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Coverage on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install
npm run test
npm run coverage -- -t ${{secrets.CODECOV_TOKEN}}
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}}