diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b96b8ba86..3ab2a2f6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,10 +132,10 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage - run: cargo llvm-cov --all-features --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core --html - - name: Save coverage report - uses: actions/upload-artifact@v4 + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 with: - name: coverage-report - path: ./target/llvm-cov/html/ - if-no-files-found: error \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + files: lcov.info + fail_ci_if_error: true \ No newline at end of file