Skip to content

Commit

Permalink
[github-actions] fix code coverage of ncp mode CI (#2377)
Browse files Browse the repository at this point in the history
This commit fixes the code coverage issue in github actions in
`ncp_mode` and `meshcop`. The option `OTBR_COVERAGE` is not enabled
when building so no coverage data can be found and uploaded.
  • Loading branch information
Irving-cl authored Jul 15, 2024
1 parent 8c7b36b commit b7ebdc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/meshcop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Build
env:
OTBR_MDNS: ${{ matrix.mdns }}
OTBR_COVERAGE: 1
run: |
script/bootstrap
script/test build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ncp_mode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: tests/scripts/bootstrap.sh
- name: Build
run: |
OTBR_BUILD_DIR="./build/temp" script/cmake-build -DCMAKE_BUILD_TYPE=Debug -DOT_THREAD_VERSION=1.3 -DOTBR_DBUS=ON -DOTBR_FEATURE_FLAGS=ON -DOTBR_TELEMETRY_DATA_API=ON -DOTBR_WEB=ON -DOTBR_UNSECURE_JOIN=ON -DOTBR_TREL=ON
OTBR_BUILD_DIR="./build/temp" script/cmake-build -DCMAKE_BUILD_TYPE=Debug -DOT_THREAD_VERSION=1.3 -DOTBR_COVERAGE=ON -DOTBR_DBUS=ON -DOTBR_FEATURE_FLAGS=ON -DOTBR_TELEMETRY_DATA_API=ON -DOTBR_WEB=ON -DOTBR_UNSECURE_JOIN=ON -DOTBR_TREL=ON
- name: Run
run: OTBR_VERBOSE=1 OTBR_TOP_BUILDDIR="./build/temp" script/test ncp_mode
- name: Codecov
Expand Down

0 comments on commit b7ebdc3

Please sign in to comment.