Skip to content

1.0.5 (#11)

1.0.5 (#11) #11

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test-coverage:
name: Testing and coverage
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x', '16.x', '18.x', '20.x', 'lts/*']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Upload coverage to Codecov
if: matrix.node-version == 'lts/*' && github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}