From 2a0011d51bed6f040ad0cd06d3fda7797b50213d Mon Sep 17 00:00:00 2001 From: Maksym Date: Mon, 12 Feb 2024 20:26:22 +0100 Subject: [PATCH] upd github ci --- .github/workflows/checks.yml | 37 +++++++++++++------ .../rust-toolchain | 0 2 files changed, 26 insertions(+), 11 deletions(-) rename rust-toolchain => legacy-shielder/rust-toolchain (100%) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d1e6d11..0c46ecc 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -18,39 +18,50 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain + working-directory: legacy-shielder uses: actions-rs/toolchain@v1 - name: Install WASM target + working-directory: legacy-shielder run: rustup target add wasm32-unknown-unknown - name: Run format check for `shielder/cli` - run: cd legacy-shielder/cli/ && cargo fmt --all --check + working-directory: legacy-shielder + run: cd cli/ && cargo fmt --all --check - name: Run clippy for `shielder/cli` - run: cd legacy-shielder/cli/ && cargo clippy --all-features -- --no-deps -D warnings + working-directory: legacy-shielder + run: cd cli/ && cargo clippy --all-features -- --no-deps -D warnings - name: Run tests for `shielder/cli` - run: cd legacy-shielder/cli/ && cargo test + working-directory: legacy-shielder + run: cd cli/ && cargo test - name: Run format check for `shielder/contract` - run: cd legacy-shielder/contract/ && cargo fmt --all --check + working-directory: legacy-shielder + run: cd contract/ && cargo fmt --all --check - name: Run clippy for `shielder/contract` - run: cd legacy-shielder/contract/ && cargo clippy --all-features -- --no-deps -D warnings + working-directory: legacy-shielder + run: cd contract/ && cargo clippy --all-features -- --no-deps -D warnings - name: Run tests for `shielder/contract` - run: cd legacy-shielder/contract/ && cargo test + working-directory: legacy-shielder + run: cd contract/ && cargo test - name: Run format check for `shielder/public_token` - run: cd legacy-shielder/public_token/ && cargo fmt --all --check + working-directory: legacy-shielder + run: cd public_token/ && cargo fmt --all --check - name: Run clippy for `shielder/public_token` - run: cd legacy-shielder/public_token/ && cargo clippy --all-features -- --no-deps -D warnings + working-directory: legacy-shielder + run: cd public_token/ && cargo clippy --all-features -- --no-deps -D warnings - name: Run tests for `shielder/public_token` - run: cd legacy-shielder/public_token/ && cargo test + working-directory: legacy-shielder + run: cd public_token/ && cargo test build-contracts: runs-on: [self-hosted, Linux, X64, large] @@ -61,24 +72,28 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain + working-directory: legacy-shielder uses: actions-rs/toolchain@v1 - name: Install WASM target + working-directory: legacy-shielder run: rustup target add wasm32-unknown-unknown - name: Build public token contract + working-directory: legacy-shielder run: | docker run \ -v ${{ github.workspace }}:/code \ --platform linux/amd64 \ ${{ env.DOCKER_IMAGE }} \ - cargo contract build --manifest-path legacy-shielder/public_token/Cargo.toml + cargo contract build --manifest-path public_token/Cargo.toml - name: Build shielder contract + working-directory: legacy-shielder run: | docker run \ -v ${{ github.workspace }}:/code \ --platform linux/amd64 \ ${{ env.DOCKER_IMAGE }} \ - cargo contract build --manifest-path legacy-shielder/contract/Cargo.toml + cargo contract build --manifest-path contract/Cargo.toml diff --git a/rust-toolchain b/legacy-shielder/rust-toolchain similarity index 100% rename from rust-toolchain rename to legacy-shielder/rust-toolchain