mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 08:34:17 +08:00
ci: generate test coverage reports (#343)
This commit is contained in:
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
@@ -36,10 +36,20 @@ jobs:
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Cargo test
|
||||
- name: Update Rust
|
||||
run: |
|
||||
rustup update
|
||||
RUST_BACKTRACE=1 cargo test --all -- --test-threads=1
|
||||
cargo install --force cargo-tarpaulin
|
||||
|
||||
- name: Run Core tests
|
||||
run: |
|
||||
cd ${{ github.workspace }}/components/ordhook-core
|
||||
cargo tarpaulin --skip-clean --out lcov -- --test-threads=1
|
||||
|
||||
- name: Run CLI tests
|
||||
run: |
|
||||
cd ${{ github.workspace }}/components/ordhook-cli
|
||||
cargo tarpaulin --skip-clean --out lcov -- --test-threads=1
|
||||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v4.0.1
|
||||
|
||||
Reference in New Issue
Block a user