Add dockerci target which builds badge and uploads to github pages

This commit is contained in:
Toby Jaffey 2025-12-14 02:06:10 +00:00
parent cfc1286874
commit b2b7827e60
3 changed files with 25 additions and 18 deletions

View file

@ -16,21 +16,17 @@ jobs:
- name: Build
run: make dockerbuild_cached && make docker
working-directory: uvm32
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
- name: CI test
run: make dockerci
working-directory: uvm32
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v4
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
filename: uvm32/test/coverage.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: code-coverage-results.md
path: uvm32/test/badge.svg
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4