diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 813cb540..740e9b2c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,14 +15,14 @@ jobs: build_and_upload_contracts: defaults: run: - working-directory: "/__w" + working-directory: "/__w/babylon-contract/babylon-contract" runs-on: ubuntu-latest container: image: rust:1.78.0 steps: - uses: actions/checkout@v4.1.0 with: - path: "/__w" + path: "/__w/babylon-contract/babylon-contract" - name: Make temporary bin run: mkdir -p /tmp/bin - name: Install ghr @@ -32,9 +32,9 @@ jobs: - uses: actions/upload-artifact@v4.1.0 with: path: |- - /__w/artifacts/babylon_contract.wasm - /__w/artifacts/btc_staking.wasm - /__w/artifacts/checksums.txt + /__w/babylon-contract/babylon-contract/artifacts/babylon_contract.wasm + /__w/babylon-contract/babylon-contract/artifacts/btc_staking.wasm + /__w/babylon-contract/babylon-contract/artifacts/checksums.txt - name: Show data run: |- ls -l artifacts @@ -53,14 +53,14 @@ jobs: build_and_upload_schemas: defaults: run: - working-directory: "/__w" + working-directory: "/__w/babylon-contract/babylon-contract" runs-on: ubuntu-latest container: image: rust:1.78.0 steps: - uses: actions/checkout@v4.1.0 with: - path: "/__w" + path: "/__w/babylon-contract/babylon-contract" - name: Make temporary bin run: mkdir -p /tmp/bin - name: Install ghr diff --git a/.github/workflows/local-tests.yml b/.github/workflows/local-tests.yml index d9580060..d08ba3bb 100644 --- a/.github/workflows/local-tests.yml +++ b/.github/workflows/local-tests.yml @@ -13,13 +13,5 @@ jobs: image: rust:1.78.0 steps: - uses: actions/checkout@v4.1.0 - - name: Set up Rust environment - run: rustup component add rustfmt clippy - - name: Build Babylon contracts - run: cargo build - - name: Test generating schema - run: |- - (cd ./contracts/babylon && cargo run --bin schema) - (cd ./contracts/btc-staking && cargo run --bin btcstaking-schema) - - name: Check formats and run unit tests + - name: Build contracts, check formats, and run unit tests run: cargo test --lib diff --git a/.github/workflows/wasm-tests.yml b/.github/workflows/wasm-tests.yml index 41a10dba..eefc6e70 100644 --- a/.github/workflows/wasm-tests.yml +++ b/.github/workflows/wasm-tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install cosmwasm-check run: cargo install --locked --debug --version ^2.0 cosmwasm-check - name: Check the Wasm binaries' validity - run: cosmwasm-check /__w/artifacts/*.wasm + run: cosmwasm-check /__w/babylon-contract/babylon-contract/artifacts/*.wasm - name: Integration tests based on CosmWasm run: cargo test --test integration - uses: actions/upload-artifact@v4.1.0