From 7034db3a446d61327305f5fef7d4d908804724a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Lepage=20Vall=C3=A9e?= Date: Sun, 25 Aug 2024 18:15:02 +0200 Subject: [PATCH] Try to fix codecov (#3946) Update the main workflow to use the GitHub Action version of `codecov` instead of the bash version. --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b46df8722..c04d069875 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -317,11 +317,18 @@ jobs: - name: Run themes tests run: cd "${{ github.workspace }}/build" && make check-themes - - name: Upload Lua code coverage report + - name: Generate Lua 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 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'