-
Notifications
You must be signed in to change notification settings - Fork 248
53 lines (46 loc) · 1.19 KB
/
code-coverage.yml
File metadata and controls
53 lines (46 loc) · 1.19 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
name: "Code Coverage Analysis"
on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
schedule:
# 11:00 PM UTC every Sunday
- cron: '0 23 * * 0'
env:
SIMULATION: native
ENABLE_UNIT_TESTS: true
OMIT_DEPRECATED: false
BUILDTYPE: debug
jobs:
Execute-Unit-Tests:
name: Build and Execute CFE unit tests
runs-on: ubuntu-22.04
container: ghcr.io/core-flight-system/cfsbuildenv-linux:latest
timeout-minutes: 15
steps:
- name: Install coverage tools
run: sudo apt-get install lcov -y
- name: Checkout cFE
uses: actions/checkout@v6
with:
path: cfe
- name: Set up Dependencies
uses: ./cfe/.github/actions/setup-cfe
with:
source-dir: .
preferred-ref: ${{ github.head_ref }}
org: 'nasa'
- name: Execute coverage testing
uses: ./cfe/.github/actions/code-coverage
with:
module-list: config core_api core_private es evs fs msg resourceid sb sbr tbl time
allowed-missed-branches: 13
allowed-missed-lines: 7
allowed-missed-functions: 0