From 8ef35f56a3b1be0b01ce062e55aeab38f4a2a90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Lepage=20Vall=C3=A9e?= Date: Tue, 27 Aug 2024 12:26:42 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27a18e159..4e4a9fbca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -337,17 +337,22 @@ jobs: # with Code Climate. find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete done - echo "All gcov files:" - find / -iname '*gcov*' 2> /dev/null || true - echo "PWD ${PWD}" - - name: Upload code coverage report + - name: Upload Lua code coverage report if: matrix.coverage == 'codecov' uses: codecov/codecov-action@v3 with: files: "${{ github.workspace }}/build/luacov.report.out" env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: Upload C code coverage report + if: matrix.coverage == 'codecov' + uses: codecov/codecov-action@v3 + with: + files: "${{ github.workspace }}/build/*/*.gcov" + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # `check-qa` is the only test that doesn't get a coverage report, so it has to run after all of that. - name: Run qa tests