]> git.ipfire.org Git - thirdparty/systemd.git/blob - .github/workflows/unit_tests.yml
CI: add code coverage reports via lcov and coveralls.io
[thirdparty/systemd.git] / .github / workflows / unit_tests.yml
1 ---
2 # vi: ts=2 sw=2 et:
3 #
4 name: Unit tests
5 on:
6 pull_request:
7 branches:
8 - main
9
10 jobs:
11 build:
12 runs-on: ubuntu-20.04
13 strategy:
14 fail-fast: false
15 matrix:
16 run_phase: [GCC, GCC_ASAN_UBSAN, CLANG, CLANG_ASAN_UBSAN]
17 steps:
18 - name: Repository checkout
19 uses: actions/checkout@v2
20 - name: Install build dependencies
21 run: sudo -E .github/workflows/unit_tests.sh SETUP
22 - name: Build & test (${{ matrix.run_phase }})
23 run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
24 - name: Coveralls
25 if: matrix.run_phase == 'GCC' && github.repository == 'systemd/systemd'
26 uses: coverallsapp/github-action@master
27 with:
28 github-token: ${{ secrets.GITHUB_TOKEN }}
29 path-to-lcov: ./build/meson-logs/coverage.info