Skip to content

Coverage badge

Coverage badge #63

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
paths-ignore:
- "**/coverage.svg"
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
- 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' }}
steps:
- uses: GoogleCloudPlatform/[email protected]

Check failure on line 40 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 40
file: ./build/coverage.info
if: ${{ github.event_name == 'push' }}