-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,13 +43,17 @@ jobs: | |
- name: Install deps | ||
run: sudo apt -y install protobuf-compiler | ||
|
||
- name: Install Tarpaulin v0.31.4 and Generate Report | ||
- 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 -xvzf tarpaulin.tar.gz && \ | ||
chmod +x cargo-tarpaulin && \ | ||
sudo mv cargo-tarpaulin /usr/local/bin/ && \ | ||
cargo tarpaulin --workspace --features try-runtime,runtime-benchmarks --exclude astar-collator --exclude xcm-tools --exclude local-runtime --exclude shibuya-runtime --exclude shiden-runtime --exclude astar-runtime integration-tests --exclude-files vendor/* --exclude-files bin/* --exclude-files runtime/* --exclude-files tests/* --exclude-files **/mock.rs --exclude-files **/weights.rs --out Xml | ||
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 | ||
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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |