Skip to content

Commit

Permalink
Only deploy coverage report on push to master, added Print Coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
4c3y committed Jan 10, 2024
1 parent 510a02d commit bdb98f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,23 @@ jobs:
working-directory: catkin_ws/src/lpp/build/devel/lib/lpp
shell: bash

- name: Print coverage
run: gcovr
working-directory: catkin_ws/src/lpp

- name: Generate coverage report
if: github.ref == 'refs/heads/master'
run: make coverage
working-directory: catkin_ws/src/lpp/build

- name: Upload artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: ./catkin_ws/src/lpp/build/coverage

- name: Deploy to Github pages
if: github.ref == 'refs/heads/master'
uses: actions/deploy-pages@v4
id: deployment

Expand Down

0 comments on commit bdb98f5

Please sign in to comment.