Skip to content

Commit 9404cb6

Browse files
committed
Merge github.com:FreeRTOS/FreeRTOS-Kernel into HEAD
2 parents 94d6ad4 + 95433d0 commit 9404cb6

File tree

2 files changed

+1370
-1314
lines changed

2 files changed

+1370
-1314
lines changed

.github/workflows/unit-tests.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CMock Unit Tests
2+
on: [push]
3+
4+
jobs:
5+
run:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout Parent Repo
9+
uses: actions/checkout@v2
10+
with:
11+
ref: master
12+
repository: FreeRTOS/FreeRTOS
13+
submodules: 'recursive'
14+
fetch-depth: 1
15+
- name: Clone This Repo
16+
uses: actions/checkout@v2
17+
with:
18+
path: ./FreeRTOS/Source
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@master
22+
with:
23+
python-version: 3.8
24+
25+
- name: Install packages
26+
run: |
27+
sudo apt-get install lcov cflow ruby doxygen build-essential
28+
- name: Run Unit Tests with ENABLE_SANITIZER=1
29+
run: |
30+
make -C FreeRTOS/Test/CMock clean
31+
make -C FreeRTOS/Test/CMock ENABLE_SANITIZER=1 run_col_formatted
32+
- name: Run Unit Tests for coverage
33+
run: |
34+
make -C FreeRTOS/Test/CMock clean
35+
make -C FreeRTOS/Test/CMock lcovhtml
36+
lcov --config-file FreeRTOS/Test/CMock/lcovrc --summary FreeRTOS/Test/CMock/build/cmock_test.info > FreeRTOS/Test/CMock/build/cmock_test_summary.txt
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v1
39+
with:
40+
files: FreeRTOS/Test/CMock/build/cmock_test.info
41+
working-directory: .
42+
root_dir: FreeRTOS/Source
43+
flags: unittests
44+
fail_ci_if_error: false
45+
path_to_write_report: coverage/codecov_report.txt
46+
verbose: false
47+
- name: Archive code coverage data
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: coverage-data
51+
path: FreeRTOS/Test/CMock/build/cmock_test*
52+
- name: Archive code coverage html report
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: coverage-report
56+
path: FreeRTOS/Test/CMock/build/coverage

0 commit comments

Comments
 (0)