Deploy coverage report to github pages

This commit is contained in:
jgromes 2025-02-10 08:15:38 +01:00
parent 67f2985107
commit ca75df5db5
2 changed files with 10 additions and 2 deletions

View file

@ -35,4 +35,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: coverage_report
path: extras/test/unit/lcov.report.zip
path: extras/test/unit/lcov.report
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: extras/test/unit/lcov.report
destination_dir: coverage
keep_files: true

View file

@ -10,4 +10,3 @@ lcov --remove "${filename}.info" "/usr/*/boost/*" "/usr/include/c++/*" --output-
# generate HTML
genhtml "${filename}.info" --output-directory "${filename}.report"
zip -r "${filename}.report.zip" "${filename}.report"