-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.09 KB
/
lib-check.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
34
35
36
37
38
39
40
41
42
43
44
45
name: lib tests (with AL)
on:
pull_request:
push:
branches:
- main
- dev
jobs:
build:
name: Build and test libmeasuresuite w AL
runs-on: ubuntu-latest
steps:
- uses: 0xADE1A1DE/AssemblyLine@main
- name: Install dependencies
run: sudo apt install -y lcov python3 python3-pip nasm
- run: pip3 install plotly lcov_cobertura
- uses: actions/checkout@v3
- name: C checks (including coverage)
run: make -C lib clean check
- name: Code Coverage Summary
if: ${{ github.actor != 'dependabot[bot]' }}
uses: irongut/CodeCoverageSummary@v1.2.0
with:
badge: true
format: markdown
output: both
filename: ./lib/coverage/coverage.xml
- uses: jwalton/gh-find-current-pr@v1
if: ${{ github.actor != 'dependabot[bot]' }}
id: finder
- name: Add Coverage PR Comment
if: ${{ github.actor != 'dependabot[bot]' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.finder.outputs.pr }}
recreate: true
path: code-coverage-results.md