-
-
Notifications
You must be signed in to change notification settings - Fork 20
33 lines (31 loc) · 951 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Run test suite
on: [push, pull_request]
jobs:
run-test-suite:
name: Run test suite
runs-on: ubuntu-22.04
steps:
- name: Install prerequisites
run: |
sudo apt-get install ninja-build g++ meson libgtest-dev gcovr
- uses: actions/checkout@v2
- name: Configure build
run: meson --buildtype=debug -Db_coverage=true build
- name: Run tests
run: ninja -C build test
- name: Generate coverage
run: |
cd build
ninja coverage-html
ninja coverage-xml
ninja coverage-sonarqube
ninja coverage-text
- name: Upload coverage reports as artifacts
uses: actions/upload-artifact@v2
with:
name: coverages
path: |
build/meson-logs/coverage.xml
build/meson-logs/sonarqube.xml
build/meson-logs/coverage.txt
build/meson-logs/coveragereport/