Skip to content

Commit

Permalink
Add working_directory to CI tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Aug 23, 2024
1 parent 76d6294 commit d7fd513
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/$PROJECT_NAME
run: cargo test
- name: Clippy project
working-directory: ${{ runner.temp }}/$PROJECT_NAME
run: cargo clippy --all-targets -- -D warnings
- name: Fmt check project
working-directory: ${{ runner.temp }}/$PROJECT_NAME
run: cargo fmt --check
- name: Build WASM binary
working-directory: ${{ runner.temp }}/$PROJECT_NAME
run: cargo wasm
- name: Install cosmwasm-check
working-directory: ${{ runner.temp }}/$PROJECT_NAME
run: cargo install cosmwasm-check
- name: Check contracts
working-directory: ${{ runner.temp }}/$PROJECT_NAME
run: find examples/target/wasm32-unknown-unknown/release/ -type f -name "*.wasm" -exec cosmwasm-check {} \;

0 comments on commit d7fd513

Please sign in to comment.