-
Notifications
You must be signed in to change notification settings - Fork 69
43 lines (37 loc) · 1.22 KB
/
coverage.yml
File metadata and controls
43 lines (37 loc) · 1.22 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
---
name: coverage
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
scan:
name: Coverage report
runs-on: ubuntu-22.04
container: quay.io/fedora/fedora:latest
steps:
- name: Install Dependencies
run: |
dnf -y install git clang gcc meson which pkgconf-pkg-config \
openssl-devel openssl diffutils expect opensc python3-six \
nss-softokn nss-tools nss-softokn-devel nss-devel softhsm \
p11-kit-devel kryoptic gcovr lcov
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup
run: |
git config --global --add safe.directory \
/__w/pkcs11-provider/pkcs11-provider
git submodule update --init
meson setup builddir -Db_coverage=true
- name: Build, test and generate coverage reports
run: |
meson compile -C builddir
meson test -C builddir
ninja -C builddir coverage
- uses: actions/upload-artifact@v4
with:
name: Test valgrind logs ${{ matrix.name }}, ${{ matrix.compiler }}, ${{ matrix.token }} - ${{ steps.setup.cpu }}
path: |
builddir/meson-logs/coveragereport/