Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump tarpaulin version #1408

Merged
merged 11 commits into from
Jan 17, 2025
17 changes: 11 additions & 6 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ 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
- name: Install Tarpaulin
grbIzl marked this conversation as resolved.
Show resolved Hide resolved
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 -xvzf tarpaulin.tar.gz
ipapandinas marked this conversation as resolved.
Show resolved Hide resolved
chmod +x cargo-tarpaulin
sudo mv cargo-tarpaulin $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
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.77.0"
channel = "1.78.0"
ipapandinas marked this conversation as resolved.
Show resolved Hide resolved
components = ["rust-src", "rustfmt", "clippy"]
targets = ["wasm32-unknown-unknown"]
profile = "minimal"
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"]
Loading