diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 116d7b06fc..70d1ecddb4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -267,11 +267,10 @@ jobs: NAMADA_MASP_PARAMS_DIR: /home/runner/.masp-params RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold" - name: Upload coverage - uses: actions/upload-artifact@v3 + uses: codecov/codecov-action@v3 with: - name: coverage-${{ github.event.pull_request.head.sha || github.sha }} - path: target/html - retention-days: 3 + files: lcov.info + fail_ci_if_error: true - name: Print sccache stats if: always() run: sccache --show-stats || true diff --git a/Makefile b/Makefile index f1ea9b7480..d22cb7db11 100644 --- a/Makefile +++ b/Makefile @@ -149,9 +149,9 @@ test: test-unit test-e2e test-wasm test-benches test-coverage: # Run integration tests separately because they require `integration` # feature (and without coverage) and run them with pre-built MASP proofs - $(cargo) +$(nightly) llvm-cov --output-dir target \ + $(cargo) +$(nightly) llvm-cov --output-path lcov.info \ --features namada/testing \ - --html \ + --lcov \ -- --skip e2e --skip pos_state_machine_test --skip integration \ -Z unstable-options --report-time && \ NAMADA_MASP_TEST_SEED=$(NAMADA_MASP_TEST_SEED) \