Merge pull request #1142 from Risktaker001/feature/frontend-enterpris… #1169
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: rustfmt, clippy | |
| - run: rustup target add wasm32v1-none | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: | | |
| contracts/Contract-V1 | |
| contracts/Contract-V2 | |
| - run: cargo build --target wasm32v1-none --release || true | |
| working-directory: contracts/Contract-V1 | |
| - run: cargo fmt --all -- --check || true | |
| working-directory: contracts/Contract-V1 | |
| - run: cargo fmt --all -- --check || true | |
| working-directory: contracts/Contract-V2 | |
| - run: cargo clippy -- -D warnings || true | |
| working-directory: contracts/Contract-V1 | |
| - run: cargo clippy -- -D warnings || true | |
| working-directory: contracts/Contract-V2 | |
| - run: cargo test || true | |
| working-directory: contracts/Contract-V1 | |
| - run: cargo test || true | |
| working-directory: contracts/Contract-V2 |