0.7.0 #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check coverage | |
on: | |
pull_request: | |
branches: [ master, devel ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-24.04 | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
CMAKE_BUILD_TYPE: Debug | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install dependencies | |
shell: bash | |
run: | | |
set -ex | |
sudo apt-get update | |
sudo apt-get -y --no-install-recommends -o APT::Immediate-Configure=false install cmake bats g++ lcov uncrustify | |
- name: Coverage | |
run: | | |
set -ex | |
cmake -B "./build.d" | |
cmake --build "./build.d" --target coverage --verbose | |
mv tests/coverage tests/coverage_head | |
- name: Base branch coverage | |
run: | | |
set -ex | |
git fetch | |
git checkout origin/${{ github.event.pull_request.base.ref }} | |
cmake --build "./build.d" --target coverage --verbose | |
mv tests/coverage tests/coverage_base | |
- uses: romeovs/[email protected] | |
with: | |
lcov-file: ./tests/coverage_head/lcov.info | |
lcov-base: ./tests/coverage_base/lcov.info | |
filter-changed-files: true | |
delete-old-comments: true |