Update main.yml

This commit is contained in:
Emmanuel Lepage Vallée 2024-08-25 18:33:54 +02:00 committed by GitHub
parent 525db87185
commit 42d09806b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 10 deletions

View File

@ -304,7 +304,7 @@ jobs:
run: cd "${{ github.workspace }}/build" && make check-unit run: cd "${{ github.workspace }}/build" && make check-unit
- name: Run examples tests - name: Run examples tests
run: cd "${{ github.workspace }}/build" && make check-examples -j8 run: cd "${{ github.workspace }}/build" && make check-examples -j16
- name: Run requires tests - name: Run requires tests
if: matrix.coverage if: matrix.coverage
@ -318,14 +318,6 @@ jobs:
run: | run: |
luacov 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: Generate C coverage report - name: Generate C coverage report
if: matrix.coverage == 'codecov' if: matrix.coverage == 'codecov'
run: | run: |
@ -345,11 +337,20 @@ jobs:
# with Code Climate. # with Code Climate.
find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete
done done
- name: Upload C code coverage report - name: Upload C code coverage report
if: matrix.coverage == 'codecov' if: matrix.coverage == 'codecov'
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with:
files: "${{ github.workspace }}/gcov" files: "${{ github.workspace }}/build/*.gcov"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Lua code coverage report
if: matrix.coverage == 'codecov'
uses: codecov/codecov-action@v3
with:
files: "${{ github.workspace }}/build/luacov.report.out"
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}