Skip to content

Commit

Permalink
CI: bump tarpaulin version (#1408)
Browse files Browse the repository at this point in the history
* Bump tarpaulin version

For test coverage

* Remove deprecated actions-rs/tarpaulin

* fix: '--exclude-files' flag seems not working, downgrading version

* Testing with multiple flags

* Update rust-toolchain.toml

* Update coverage.yaml

* Fix

* Revert "Update rust-toolchain.toml"

This reverts commit b82e47f.

* Update .github/workflows/coverage.yaml

Co-authored-by: Ermal Kaleci <[email protected]>

* Update coverage.yaml

* Add TODO comment

---------

Co-authored-by: Dino Pacandi <[email protected]>
Co-authored-by: Ermal Kaleci <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2025
1 parent 765d44b commit 7e4745c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ jobs:
- name: Install deps
run: sudo apt -y install protobuf-compiler

- name: Run all tests & Generate report
uses: actions-rs/[email protected]
with:
version: 0.22.0
args: '--workspace --features try-runtime,runtime-benchmarks -e astar-collator xcm-tools local-runtime shibuya-runtime shiden-runtime astar-runtime integration-tests --exclude-files vendor/* bin/* runtime/* tests/* **/mock.rs **/weights.rs precompiles/utils/*'
out-type: Xml
# TODO: Use `cargo install` with a specific version during the next PolkadotSDK uplift and Rust toolchain version upgrade.
- name: Install Tarpaulin
run: |
curl -L -o tarpaulin.tar.gz https://github.com/xd009642/tarpaulin/releases/download/0.31.4/cargo-tarpaulin-x86_64-unknown-linux-gnu.tar.gz
tar -zxvf tarpaulin.tar.gz -C $HOME/.cargo/bin
cargo tarpaulin --version
- name: Run Tarpaulin
run: |
cargo tarpaulin --features try-runtime,runtime-benchmarks
- name: Code Coverage Summary Report
uses: irongut/[email protected]
Expand Down
13 changes: 13 additions & 0 deletions tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[default-astar]

name = "default-astar"
manifest-path = "./Cargo.toml"

workspace = true
out = ["Xml"]

# List of packages to exclude from testing.
exclude = ["astar-collator", "xcm-tools", "local-runtime", "shibuya-runtime", "shiden-runtime", "astar-runtime", "integration-tests"]

# List of file paths to exclude from testing.
exclude-files = ["vendor/*", "bin/*", "runtime/*", "tests/*", "**/mock.rs", "**/weights.rs"]

0 comments on commit 7e4745c

Please sign in to comment.