From ea1f90d5106eca6ec2cad08ba00c8b34d6681e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Fri, 23 Aug 2024 12:45:12 +0200 Subject: [PATCH] Add working_directory to CI tasks --- .github/workflows/generate.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 9d52934..b438e9b 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -27,17 +27,21 @@ jobs: # see https://github.com/rust-lang/cargo/issues/9922 - name: Move generated project to temp folder run: mv $PROJECT_NAME ${{ runner.temp }}/ - - name: Enter temp folder - run: cd ${{ runner.temp }}/$PROJECT_NAME - name: Test project + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: cargo test - name: Clippy project + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: cargo clippy --all-targets -- -D warnings - name: Fmt check project + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: cargo fmt --check - name: Build WASM binary + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: cargo wasm - name: Install cosmwasm-check + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: cargo install cosmwasm-check - name: Check contracts + working-directory: ${{ runner.temp }}/${{ env.PROJECT_NAME }} run: find examples/target/wasm32-unknown-unknown/release/ -type f -name "*.wasm" -exec cosmwasm-check {} \;