Skip to content

fix: watch-pr crashes on repos with non-main default branch (#139) #306

fix: watch-pr crashes on repos with non-main default branch (#139)

fix: watch-pr crashes on repos with non-main default branch (#139) #306

Workflow file for this run

name: Coverage Reporting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
coverage:
name: Upload Coverage to Codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: "9"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm -r build
- name: Run tests with coverage
run: pnpm test:coverage
env:
GH_TOKEN: ${{ github.token }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: true
verbose: true