Skip to content

Commit

Permalink
Add code coverage report to Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
vornkat-iis committed Aug 17, 2023
1 parent c7e01f4 commit 14d9f27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pages_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy static content to Pages

on:
push:
branches: ["master"]
branches: ["master", "118-collect-code-coverage"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -38,6 +38,12 @@ jobs:
working-directory: ${{ env.GITHUB_WORKSPACE }}/build
run: make doc

- name: Create Code Coverage Report
working-directory: ${{ env.GITHUB_WORKSPACE }}/build
run: |
make coverage &&
cp -r coverage doc/html
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ To do so, make sure you have lcov installed and do the following
$ make coverage

The result ist displayed in the console. Additionally a report is created at "build/coverage/index.html".
You can also find it [here](https://fraunhofer-iis.github.io/libjapi/coverage/index.html).

0 comments on commit 14d9f27

Please sign in to comment.