-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (34 loc) · 923 Bytes
/
check.yml
File metadata and controls
44 lines (34 loc) · 923 Bytes
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: Build + Coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install GCC and coverage tools
run: |
sudo apt update
sudo apt install gcc g++ lcov
- name: Build with Make
run: make
- name: Run coverage script
run: Tools/build/docov
- name: Upload coverage result as artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage-dir/rapport
- name: Debug coverage output
run: ls -R coverage-dir/rapport
- name: Deploy coverage to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: coverage-dir/rapport