Skip to content

chore: install Codecov CLI and configure for coverage reporting #20

chore: install Codecov CLI and configure for coverage reporting

chore: install Codecov CLI and configure for coverage reporting #20

Workflow file for this run

name: Run Tests and Upload Coverage
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
- name: Run tests with coverage
run: npm test
- name: Upload coverage to Codecov
run: npm run coverage:upload
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}