Skip to content

Only run coverage step on PRs #24

Only run coverage step on PRs

Only run coverage step on PRs #24

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:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- 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
- name: Coverage
uses: romeovs/[email protected]
with:
lcov-file: build/coverage.info
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'pull_request' }}