diff options
author | Paul Bartell <pbartell@amazon.com> | 2021-04-01 23:42:29 -0700 |
---|---|---|
committer | Paul Bartell <paul.bartell@gmail.com> | 2021-04-06 13:01:33 -0700 |
commit | 8dafa9fe4a87062ca26ca184a90b2b06d8d1dbe6 (patch) | |
tree | c721ad12ae9ed1666b497c82a4b2d7caa233888d | |
parent | 3fee3ac61fcab2dbc7a376e969a6b2cf213f3724 (diff) | |
download | freertos-git-8dafa9fe4a87062ca26ca184a90b2b06d8d1dbe6.tar.gz |
Run kernel unit tests against FreeRTOS-Kernel repository main branch and the current submodule version.
-rw-r--r-- | .github/workflows/kernel-unit-tests.yml | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/.github/workflows/kernel-unit-tests.yml b/.github/workflows/kernel-unit-tests.yml index c7fc07176..0fdf004a6 100644 --- a/.github/workflows/kernel-unit-tests.yml +++ b/.github/workflows/kernel-unit-tests.yml @@ -2,7 +2,8 @@ name: Kernel Unit Tests on: [push, pull_request] jobs: - run: + run-submodule: + name: FreeRTOS/Source Submodule Revision runs-on: ubuntu-latest steps: - name: Checkout Repository @@ -36,3 +37,44 @@ jobs: with: name: coverage-report path: FreeRTOS/Test/CMock/build/coverage + run-upstream: + name: FreeRTOS-Kernel Main Branch + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + submodules: 'recursive' + fetch-depth: 5 + - name: Checkout the main branch from the FreeRTOS-Kernel repository + uses: actions/checkout@v2 + with: + path: ./FreeRTOS/Source + ref: main + repository: FreeRTOS/FreeRTOS-Kernel + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.8 + - name: Install packages + run: | + sudo apt-get install lcov cflow ruby doxygen build-essential unifdef + - name: Run Unit Tests with ENABLE_SANITIZER=1 + run: | + make -C FreeRTOS/Test/CMock clean + make -C FreeRTOS/Test/CMock ENABLE_SANITIZER=1 run_col_formatted + - name: Run Unit Tests for coverage + run: | + make -C FreeRTOS/Test/CMock clean + make -C FreeRTOS/Test/CMock lcovhtml + lcov --config-file FreeRTOS/Test/CMock/lcovrc --summary FreeRTOS/Test/CMock/build/cmock_test.info > FreeRTOS/Test/CMock/build/cmock_test_summary.txt + - name: Archive code coverage data + uses: actions/upload-artifact@v2 + with: + name: coverage-data + path: FreeRTOS/Test/CMock/build/cmock_test* + - name: Archive code coverage html report + uses: actions/upload-artifact@v2 + with: + name: coverage-report + path: FreeRTOS/Test/CMock/build/coverage |