Skip to content

Serverless coverage badge from cobertura XML coverage file with Github Actions

License

Notifications You must be signed in to change notification settings

action-badges/cobertura-coverage-xml-badges

Repository files navigation

cobertura-coverage-xml-badges

Serverless coverage badge from cobertura XML coverage file with Github Actions.

build coverage tag license node

Example:

name: Make Coverage Badge
on:
  push:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: action-badges/[email protected]
        with:
          branch-name: badges

      - name: Make Coverage Badge
        uses: action-badges/[email protected]
        with:
          file-name: coverage.svg
          badge-branch: badges
          github-token: '${{ secrets.GITHUB_TOKEN }}'
          coverage-file-name: ./coverage.xml

All of the standard action-badges parameters can also be used.

About

Serverless coverage badge from cobertura XML coverage file with Github Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published