From f9d9118e47d07e218890c904e1ae27010336f120 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Feb 2026 16:00:21 +0000 Subject: [PATCH] ci: setup Codecov coverage reporting and badge Add coverage collection (lcov) to the CI test job and upload results to Codecov using codecov-action v5. Add Codecov badge to README. https://claude.ai/code/session_01NMv7i8VUm9DaLgSF8SqEnA --- .github/workflows/ci.yaml | 9 +++++++-- README.md | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3de5fad..64506ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,5 +62,10 @@ jobs: - name: Install dependencies run: bun install - - name: Run tests - run: bun run test + - name: Run tests with coverage + run: bun run test -- --coverage --coverage.reporter=lcov + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 0952110..11df592 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ # backlog-cli [![CI](https://github.com/simochee/backlog-cli/actions/workflows/ci.yaml/badge.svg)](https://github.com/simochee/backlog-cli/actions/workflows/ci.yaml) +[![codecov](https://codecov.io/gh/simochee/backlog-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/simochee/backlog-cli) [![npm version](https://img.shields.io/npm/v/@simochee/backlog-cli)](https://www.npmjs.com/package/@simochee/backlog-cli) [![npm downloads](https://img.shields.io/npm/dm/@simochee/backlog-cli)](https://www.npmjs.com/package/@simochee/backlog-cli) [![License: MIT](https://img.shields.io/github/license/simochee/backlog-cli)](./LICENSE)