Skip to content

Commit

Permalink
Create Coverage Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-nlte committed Feb 13, 2024
1 parent 1777b43 commit 8b0f226
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/coverage-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ jobs:
mkdir ../coverage
gcovr -r ../ -f ../Bembel --html --html-details --output ../coverage/report.html
- name: Create Coverage Badge
working-directory: ${{github.workspace}}/build
shell: bash
run: |
npm install -g badge-maker
gcovr -r ../ -f ../Bembel > coverage.txt
badge coverage "$(cat coverage.txt | grep "TOTAL" | awk '{print $(NF-0)}')" :green > ../coverage/coverage.svg
- name: Upload Report
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ information. -->
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/temf/bembel)
[![DOI](https://zenodo.org/badge/173278911.svg)](https://zenodo.org/badge/latestdoi/173278911)
[![coverage report](https://temf.github.io/bembel/coverage/report/coverage.svg)](https://temf.github.io/bembel/coverage/report/report.html)
## Table of contents
1. [Introduction](#introduction)
2. [What is a Bembel?](#whatis)
Expand Down

0 comments on commit 8b0f226

Please sign in to comment.