Serde WIP #10
This file contains hidden or 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: Tests Linux with coverage | |
| on: [push] | |
| jobs: | |
| build: | |
| name: build an tests with coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y python3-pip lcov g++ | |
| pip install --upgrade meson ninja | |
| - name: Configure with meson | |
| run: meson -Db_coverage=true -Dwith_tests=true . build | |
| - name: Build (meson) | |
| run: ninja -C build | |
| - name: Run tests (meson) | |
| run: ninja test -C build | |
| - name: Generate Coverage report | |
| run: | | |
| lcov --capture --directory . --output-file coverage.info | |
| lcov --remove coverage.info '/usr/*' --output-file coverage.info | |
| lcov --remove coverage.info '*/catch.hpp' --output-file coverage.info | |
| lcov --list coverage.info |