Skip to content

Add Coverage report to PRs #28

Add Coverage report to PRs

Add Coverage report to PRs #28

Workflow file for this run

name: Continuous Integration
on: [push, pull_request]
permissions:
contents: read
pull-requests: write
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: sudo apt-get install lcov
- name: Run tests
run: |
cmake -Bbuild && cd build
cmake --build .
make test
- make: Run tests on main for coverage comparison

Check failure on line 25 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Continuous Integration

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 25, Col: 9): Unexpected value 'make'
run: |
git checkout main
cmake -Bbuild-old && cd build-old
cmake --build .
make test
if: ${{ github.event_name == 'pull_request' }}
- name: Coverage
uses: romeovs/[email protected]
with:
lcov-file: build/coverage.info
lcov-base: build-old/coverage.info
delete-old-comments: true
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'pull_request' }}