Skip to content

Add Release Workflow + CI improvements #12

Add Release Workflow + CI improvements

Add Release Workflow + CI improvements #12

Workflow file for this run

name: Test Coverage
on: [pull_request, workflow_dispatch]
jobs:
build:
name: Report Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake -DENABLE_COVERAGE=ON ..
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build .
- name: Prepare coverage data
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --target cov_data
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: build/cov.info.cleaned
minimum-coverage: 30
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{github.workspace}}
update-comment: true