From 674ee004379fcaa5f47a68196225aef73f5f8a89 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Fri, 19 Mar 2021 20:53:54 +0100 Subject: [PATCH] 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 --- .github/workflows/main.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c993e6a5..7df881c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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.