From 742e94ccad53d141f61d9455d1c73635d637c777 Mon Sep 17 00:00:00 2001 From: Thurston Date: Sun, 25 Feb 2024 16:45:29 -0800 Subject: [PATCH] Adding coverage badge. --- .github/workflows/coverage-badge.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/coverage-badge.yml diff --git a/.github/workflows/coverage-badge.yml b/.github/workflows/coverage-badge.yml new file mode 100644 index 00000000..f39313f5 --- /dev/null +++ b/.github/workflows/coverage-badge.yml @@ -0,0 +1,19 @@ +name: Make Coverage Badge +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: action-badges/create-orphan-branch@0.1.1 + with: + branch-name: badges + + - name: Make Coverage Badge + uses: action-badges/cobertura-coverage-xml-badges@0.3.0 + with: + file-name: coverage.svg + badge-branch: badges + github-token: '${{ secrets.GITHUB_TOKEN }}' + coverage-file-name: ./coverage.xml \ No newline at end of file