Skip to content

Coverage badge reporting #11

Coverage badge reporting

Coverage badge reporting #11

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: Generate ci bade JSONs
if: ${{ matrix.node-version == 20 }}
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: <gist-id>
token: ${{ secrets.GIST_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: coverage-artifacts-${{ matrix.node-version }}
path: coverage # or path/to/artifact