Skip to content

Commit

Permalink
ci: coverage: generate HTML coverage
Browse files Browse the repository at this point in the history
This generates HTML coverage from all native_sim runs:
 * both 32-bit and 64-bit
 * samples and tests

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
  • Loading branch information
mniestroj committed Sep 19, 2024
1 parent 2b6e77d commit c594428
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/hil_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ jobs:
with:
python-version: 3.x

- name: Checkout repository
uses: actions/checkout@v4
with:
path: modules/lib/golioth-firmware-sdk

- name: Install gcovr
shell: bash
run: |
Expand All @@ -407,7 +412,20 @@ jobs:
$hil_tracefiles $twister_tracefiles \
-e examples -e external -e tests"
gcovr --txt-summary --xml coverage.xml
rm -rf coverage
mkdir -p coverage
gcovr -r modules/lib/golioth-firmware-sdk \
--txt-summary \
--xml coverage.xml \
--html-details coverage/index.html
- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
if: always()
with:
secrets-json: ${{ toJson(secrets) }}
name: coverage-native-sim
path: coverage/*

- name: Coverage report
uses: irongut/CodeCoverageSummary@v1.3.0
Expand Down

0 comments on commit c594428

Please sign in to comment.