From c7d5ab146900cc291d5c6c16ee5dfed8912a247a Mon Sep 17 00:00:00 2001 From: "Claude (Opus 4.7)" Date: Thu, 21 May 2026 23:50:55 +0530 Subject: [PATCH] ci: install codecov coverage uploads (Tier-2 quality) Free unlimited for public repos. Surfaces coverage delta in PR comments. No account / token needed for public repo uploads. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/coverage.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..9cc6aa5 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,26 @@ +name: coverage + +on: + pull_request: + branches: [master, main] + push: + branches: [master, main] + +permissions: + contents: read + +jobs: + coverage: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm test -- --coverage || true + - uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: false