diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fc19d4..fdc5268 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,4 +28,11 @@ jobs: indicators: true output: both thresholds: '60 80' + - name: Make Coverage Badge + uses: action-badges/cobertura-coverage-xml-badges@0.4.0 + with: + file-name: coverage.svg + badge-branch: badges + github-token: '${{ secrets.GITHUB_TOKEN }}' + coverage-file-name: uvm32/test/coverage.xml diff --git a/README.md b/README.md index 8a58560..1d85ee9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # 🌱 uvm32 +![coverage](https://raw.githubusercontent.com/ringtailsoftware/uvm32/badges/.badges/main/coverage.svg) + uvm32 is a minimalist, dependency-free virtual machine sandbox designed for microcontrollers and other resource-constrained devices. Single C file, no dynamic memory allocations, asynchronous design, pure C99. On an [STM32L0](https://www.st.com/en/microcontrollers-microprocessors/stm32l0-series.html) (ARM Cortex-M0+) the required footprint is under 4KB flash/1KB RAM.