From 9f8c2385fcc80bf52a514767a1e4419cea9041aa Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Fri, 17 Jan 2025 09:18:47 +0100 Subject: [PATCH] Fix attempt --- .github/workflows/coverage.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 74563b810..0a2cd9e13 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -43,13 +43,19 @@ 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 /usr/local/bin/ + cargo tarpaulin --version + + - name: Run Tarpaulin + run: | + cargo tarpaulin --out Xml --workspace --verbose --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/* - name: Code Coverage Summary Report uses: irongut/CodeCoverageSummary@v1.2.0