Consolidate uploading of coverage info for unit tests

This commit is contained in:
Julian Kent
2021-01-28 12:02:06 +01:00
committed by Julian Kent
parent e014954c91
commit 7fac2fe6cd
2 changed files with 8 additions and 69 deletions
+8
View File
@@ -17,6 +17,7 @@ jobs:
check: [
"check_format",
"tests",
"tests_coverage",
"px4_fmu-v2_default stack_check",
"validate_module_configs",
"shellcheck_all",
@@ -61,3 +62,10 @@ jobs:
ulimit -a
- name: ${{matrix.check}}
run: make ${{matrix.check}}
- name: upload coverage
if: contains(matrix.check, 'coverage')
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
file: coverage/lcov.info