feat(github_actions): Unify Lua code coverage uploads

From testing it seems that uploading after individual tests has no
benefit over one upload at the end.

Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
This commit is contained in:
Lucas Schwiderski 2021-03-19 20:53:54 +01:00
parent 3fbcfc8553
commit 674ee00437
No known key found for this signature in database
GPG Key ID: AA12679AAA6DF4D8
1 changed files with 2 additions and 20 deletions

View File

@ -291,42 +291,24 @@ jobs:
- name: Run unit tests
run: cd "${{ github.workspace }}/build" && make check-unit
- name: Upload code coverage report
if: matrix.coverage == 'codecov'
run: |
luacov
bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F luacov
- name: Run examples tests
if: matrix.coverage != ''
run: cd "${{ github.workspace }}/build" && make check-examples
- name: Upload code coverage report
if: matrix.coverage == 'codecov'
run: |
luacov
bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F luacov
- name: Run requires tests
if: matrix.coverage != ''
run: cd "${{ github.workspace }}/build" && make check-requires
- name: Upload code coverage report
if: matrix.coverage == 'codecov'
run: |
luacov
bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F luacov
- name: Run themes tests
run: cd "${{ github.workspace }}/build" && make check-themes
- name: Upload code coverage report
- name: Upload Lua code coverage report
if: matrix.coverage == 'codecov'
run: |
luacov
bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F luacov
- name: Upload awesome binary coverage report
- name: Upload C code coverage report
if: matrix.coverage == 'codecov'
run: |
# Report coverage for each .gcno file separately.