Merge pull request #102 from Cofez/define-fleet-structs #61
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" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build_and_test: | |
| name: Build and Test Contracts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: rustfmt, clippy | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| # - name: Check formatting | |
| # run: cargo fmt --all -- --check | |
| # - name: Run Clippy (Linter) | |
| # run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build Contracts (WASM) | |
| run: cargo build --target wasm32-unknown-unknown --release | |
| - name: Run Tests | |
| run: cargo test |