-
-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (42 loc) · 1.44 KB
/
coverage.yml
File metadata and controls
44 lines (42 loc) · 1.44 KB
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
34
35
36
37
38
39
40
41
42
43
44
name: Tests and coverage
on:
push:
pull_request:
permissions:
statuses: write
jobs:
tests:
# XXX(arsen): stop doing this when GHAs ubuntu-latest is 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Get dependencies
run: |
export
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -y install python3-dev libxml2-dev libxslt1-dev \
cmake libyaml-dev libclang-dev llvm-dev \
libglib2.0-dev libjson-glib-dev flex \
ninja-build build-essential python3-pip \
git libgtest-dev
sudo pip3 install -U meson hotdoc gcovr
- name: Build
run: |
git clone --depth=1 https://github.com/managarm/frigg.git subprojects/frigg
meson --buildtype=debug -Dbuild_tests=true -Db_coverage=true build
cd build
ninja test
ninja coverage-html
ninja coverage-xml
ninja coverage-text
ninja coverage-sonarqube
- name: Upload coverage reports as artifacts
uses: actions/upload-artifact@v4
with:
name: coverages
path: |
build/meson-logs/coverage.xml
build/meson-logs/sonarqube.xml
build/meson-logs/coverage.txt
build/meson-logs/coveragereport/