From b7ebdc361c4c051448b1c611e9dde3d20c1bc5c7 Mon Sep 17 00:00:00 2001 From: Li Cao Date: Tue, 16 Jul 2024 02:21:09 +0800 Subject: [PATCH] [github-actions] fix code coverage of ncp mode CI (#2377) 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. --- .github/workflows/meshcop.yml | 1 + .github/workflows/ncp_mode.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/meshcop.yml b/.github/workflows/meshcop.yml index 6bbc8503ada..eade0d4559c 100644 --- a/.github/workflows/meshcop.yml +++ b/.github/workflows/meshcop.yml @@ -60,6 +60,7 @@ jobs: - name: Build env: OTBR_MDNS: ${{ matrix.mdns }} + OTBR_COVERAGE: 1 run: | script/bootstrap script/test build diff --git a/.github/workflows/ncp_mode.yml b/.github/workflows/ncp_mode.yml index 0679af5d2fe..d5b1650ec2c 100644 --- a/.github/workflows/ncp_mode.yml +++ b/.github/workflows/ncp_mode.yml @@ -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