From c68d37157580fab8392b1fce9b392dcbc11d3d9f Mon Sep 17 00:00:00 2001 From: MedovTimur Date: Tue, 3 Dec 2024 23:32:33 +0300 Subject: [PATCH] Updating workflows/contract.yml --- .github/workflows/contract.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/contract.yml b/.github/workflows/contract.yml index 87a08de..f1694ee 100644 --- a/.github/workflows/contract.yml +++ b/.github/workflows/contract.yml @@ -31,11 +31,19 @@ jobs: - name: Install rust-src component run: rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu - # - name: Check formatting - # run: cargo fmt --all --check + - name: Check formatting + run: cargo fmt --all --check - # - name: Run Clippy - # run: cargo clippy -r --all -- -D warnings + - name: Run Clippy + run: cargo clippy -r --all -- -D warnings + + - name: Prepare environment + run: | + mkdir -p target/tmp + curl -L https://get.gear.rs/gear-v1.6.1-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C target/tmp + + - name: Run tests + run: cargo test -r --all -- --ignored - name: Build project run: cargo build --release @@ -46,7 +54,6 @@ jobs: cp target/wasm32-unknown-unknown/release/*.wasm artifacts/ cp target/wasm32-unknown-unknown/release/*.idl artifacts/ - # Upload artifacts to GitHub Actions - name: Upload artifacts uses: actions/upload-artifact@v3 with: