Skip to content

Add total coverage aggregation with weighted average and forward-fill #569

Add total coverage aggregation with weighted average and forward-fill

Add total coverage aggregation with weighted average and forward-fill #569

Workflow file for this run

name: Jest Coverage
on:
pull_request:
types: [opened, synchronize]
branches: [main]
paths-ignore:
- "**.md"
- "**.mdx"
- ".github/workflows/**"
- "docs/**"
- "infrastructure/**"
- "public/**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
# ci stands for "clean install", used for CICD
- name: Install dependencies
run: npm ci
- name: Run Jest with coverage
run: npm test -- --coverage --coverageReporters="text" --coverageReporters="lcov"
env:
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/lcov.info