diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6afa1238..27e31c66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,3 +59,15 @@ jobs: cargo +${{ steps.toolchain.outputs.name }} llvm-cov clean --workspace cargo +${{ steps.toolchain.outputs.name }} test --all-targets --all-features --verbose cargo +${{ steps.toolchain.outputs.name }} llvm-cov report --codecov --output-path codecov.json + + - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + with: + name: codecov.json + path: codecov.json + + - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 + with: + files: codecov.json + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}