Skip to content

Commit eae3b92

Browse files
committed
Fix workflow
1 parent 3910da5 commit eae3b92

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/basic_checks.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ jobs:
204204
TOOLCHAIN: GCC_ARM
205205
TARGET_NAME: K64F
206206
PROFILE: develop
207+
COVERAGE_FILE: coverage.xml
207208
runs-on: ubuntu-latest
208209
container:
209210
image: ghcr.io/armmbed/mbed-os-env:master-latest
@@ -225,19 +226,16 @@ jobs:
225226
run: |
226227
set -x
227228
ctest --build-and-test . build --build-generator Ninja --build-options -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON --test-command ctest
228-
gcovr --gcov-executable gcov -r . ./build -s -x coverage.xml -e ".*\.h" --exclude-directories=${GITHUB_WORKSPACE}/build/UNITTESTS --exclude-directories=${GITHUB_WORKSPACE}/build/_deps
229-
ls .
230-
ls ./build
229+
gcovr --gcov-executable gcov -r . ./build -s -x ${{ env.COVERAGE_FILE }} -e ".*\.h" --exclude-directories=${GITHUB_WORKSPACE}/build/UNITTESTS --exclude-directories=${GITHUB_WORKSPACE}/build/_deps
231230
ccache -s
232-
- name: upload coverage
231+
232+
-
233+
name: upload coverage
233234
uses: codecov/codecov-action@v2
234235
with:
235236
token: 57166f89-22b3-4949-9488-ddd3c78123fb
236-
files: coverage.xml
237-
flags: unittests
238-
run: |
239-
ls .
240-
ls ./build
237+
files: ${{ env.COVERAGE_FILE }}
238+
verbose: true
241239

242240
# Reject any changes to tools that would require a re-release of the
243241
# tools for the online compiler.

0 commit comments

Comments
 (0)