Skip to content

test: coverage

test: coverage #13

Workflow file for this run

name: cov
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
send-coverage-report:
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: write
security-events: write
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Jest Test
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
run: |
npm ci --legacy-peer-deps
npm run test:cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: unit_test
name: OpenriceCanadaBackend
verbose: true