Skip to content

feat: add codecov

feat: add codecov #4

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20", "22"]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: npm install -g pnpm
- name: Start Services
run: pnpm test:services:start
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Run the Tests
run: pnpm test
- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_KEY }}
verbose: true
files: ./coverage/lcov.info