-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.51 KB
/
Copy pathDailyCoverage.yml
File metadata and controls
68 lines (57 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Daily Code Coverage
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
env:
TEST_TIMEOUT: 60
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup Cpp
uses: aminya/setup-cpp@v1.8.0
with:
compiler: llvm
cmake: true
ninja: true
- name: Install Dependencies
shell: bash
run: |
sudo apt-get install -y libx11-dev libgl-dev
pip install gcovr
- name: Configure CMake
shell: bash
run: |
rm -rf build
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTS=ON
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
- name: Build
shell: bash
run: cmake --build build --parallel
- name: Code Coverage
shell: bash
run: cmake --build build --target coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
files: build/coverage
flags: unit_tests
verbose: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
continue-on-error: true
with:
category: "/language:${{ matrix.language }}"