diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5aaae0d..3a9c78d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -27,10 +27,14 @@ jobs: working-directory: ${{github.workspace}}/build run: | export LLVM_PROFILE_FILE=./gf2.profraw - test/testgf2 + test/testgf2 llvm-profdata merge -sparse gf2.profraw -o gf2.profdata llvm-cov show ./test/testgf2 -instr-profile=gf2.profdata > coverage.txt - - name: Upload coverage reports to Codecov + - name: Upload coverage to Codecov working-directory: ${{github.workspace}}/build - run: | - bash <(curl -s https://codecov.io/bash) + uses: codecov/codecov-action@v4 + with: + files: coverage.txt + token: ${{secrets.CODECOV_TOKEN}} + fail_ci_if_error: true + verbose: true