From: rajarshimaitra Date: Sat, 27 Nov 2021 11:33:08 +0000 (+0530) Subject: Update codecov to grcov from Tarpauline X-Git-Tag: v0.4.0~9^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.HexToArrayError.html?a=commitdiff_plain;h=f8200a160b4dddc96ef7478cb2ccdf5f45cfcd4a;p=bdk-cli Update codecov to grcov from Tarpauline --- diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index acdc0f5..c9e378e 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -3,25 +3,53 @@ on: [push] name: Code Coverage jobs: - tarpaulin-codecov: - name: Tarpaulin to codecov.io + + codecov: + name: Code Coverage runs-on: ubuntu-latest + env: + CARGO_INCREMENTAL: '0' + RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' + RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' + steps: - name: Checkout uses: actions/checkout@v2 - - name: Set default toolchain - run: rustup default nightly + - name: Install rustup + run: curl https://sh.rustup.rs -sSf | sh -s -- -y - name: Set profile run: rustup set profile minimal + - name: Update toolchain + run: rustup update + - name: Override the default toolchain + run: rustup override set nightly + + + - name: Test Compiler + run: cargo test --features compiler + + - name: Test Electrum + run: cargo test --features electrum + + - name: Test Esplora-Ureq + run: cargo test --features esplora-ureq + + - name: Test Esplora-reqwest + run: cargo test --features esplora-reqwest + + - name: Test Compact Filters + run: cargo test --features compact_filters + + - name: Test RPC + run: cargo test --features rpc - - name: Install tarpaulin - run: cargo install cargo-tarpaulin - - name: Tarpaulin - run: cargo tarpaulin --features default --run-types Tests,Doctests --out Xml + - id: coverage + name: Generate coverage + uses: actions-rs/grcov@v0.1.5 - - name: Publish to codecov.io - uses: codecov/codecov-action@v2.1.0 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 with: - fail_ci_if_error: true - file: ./cobertura.xml + file: ${{ steps.coverage.outputs.report }} + directory: ./coverage/reports/