Skip to content

Merge pull request #139 from hey-api/dependabot/npm_and_yarn/express-… #19

Merge pull request #139 from hey-api/dependabot/npm_and_yarn/express-…

Merge pull request #139 from hey-api/dependabot/npm_and_yarn/express-… #19

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
pull_request:
jobs:
upload:
name: Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build library
run: npm run build
- name: Run test coverage
run: npm run test:coverage
- name: Upload code coverage to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage
flags: unittests
fail_ci_if_error: true