From 3cc944936fd79935534a596199511d5d94e2b197 Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 5 Sep 2024 11:22:16 +0200 Subject: [PATCH] CI: Add explicite collections contract build to the coverage job --- .github/workflows/codecov.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e87c2306..8ce7c4a6 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,8 +11,18 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust-version }} + target: wasm32-unknown-unknown + override: true - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov + # Explicitly build the collections contract first + - name: Build Collections Contract + run: make build - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json - name: Upload coverage to Codecov