Try to fix codecov (#3946)

Update the main workflow to use the GitHub Action version of `codecov` instead of the bash version.
This commit is contained in:
Emmanuel Lepage Vallée 2024-08-25 18:15:02 +02:00 committed by GitHub
parent 67f5e7feca
commit 7034db3a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -317,11 +317,18 @@ jobs:
- name: Run themes tests - name: Run themes tests
run: cd "${{ github.workspace }}/build" && make check-themes run: cd "${{ github.workspace }}/build" && make check-themes
- name: Upload Lua code coverage report - name: Generate Lua coverage report
if: matrix.coverage == 'codecov' if: matrix.coverage == 'codecov'
run: | run: |
luacov 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 - name: Upload C code coverage report
if: matrix.coverage == 'codecov' if: matrix.coverage == 'codecov'