Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed May 21, 2024
1 parent 8c0166f commit f2f1791
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
cmake -Bbuild && cd build
cmake --build .
make test
- name: Upload coverage artifact
uses: actions/upload-artifact@master
with:
name: lcov-info-pr
path: build/coverage.info
coverage:
uses: ./.github/workflows/coverage.yml
if: ${{ github.event_name == 'pull_request' }}
20 changes: 7 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,16 @@ jobs:
cmake -Bbuild && cd build
cmake --build .
make test
cp build/coverage.info /tmp/coverage_main.info
- name: Checkout PR
uses: actions/checkout@v3
- name: Download coverage artifact
uses: actions/download-artifact@master
with:
submodules: recursive
- name: Run tests on main for coverage comparison
run: |
git checkout main
cmake -Bbuild && cd build
cmake --build .
make test
name: lcov-info-pr
path: build_pr/
- name: Coverage
uses: romeovs/lcov-reporter-action@2a28ec3e25fb7eae9cb537e9141603486f810d1a
with:
lcov-base: /tmp/coverage_main.info
lcov-file: build/coverage.info
delete-old-comments: true
lcov-base: build/coverage.info
lcov-file: build_pr/coverage.info
filter-changed-files: true
delete-old-comments: true
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f2f1791

Please sign in to comment.