Closed jpb06 closed 4 weeks ago
Coverage badges are written in ./badges/coverage-average
(assuming ./badges
is the output folder):
Generated using the following file: https://github.com/jpb06/coverage-badges-action/blob/summaries-average-manual-test/.github/workflows/coverage-average.yml
name: ⚡ Coverage average badges
on:
push:
branches:
- summaries-average-manual-test
jobs:
coverage-badges-generation:
name: 📣 Coverage badges generation
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
cache-dependency-path: ./package.json
- name: 📥 Install deps
run: pnpm install --frozen-lockfile
- name: 🔍 Tests
run: pnpm test-ci
- name: ⚙️ Generating coverage badges
uses: ./
with:
branches: summaries-average-manual-test
coverage-summary-path: |
./apps/**/coverage/coverage-summary.json
badges-icon: vitest
https://github.com/jpb06/coverage-badges-action/issues/5#issuecomment-2129494828