diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee944b2c1..ae3d8dcfc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -304,7 +304,7 @@ jobs: run: cd "${{ github.workspace }}/build" && make check-unit - 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 if: matrix.coverage @@ -318,14 +318,6 @@ jobs: run: | 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 if: matrix.coverage == 'codecov' run: | @@ -345,11 +337,20 @@ jobs: # with Code Climate. find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete done + - name: Upload C code coverage report if: matrix.coverage == 'codecov' uses: codecov/codecov-action@v3 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: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}