docs: document all env vars with descriptions, examples, and required/optional markers #3
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: Contracts CI | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "apps/contracts/**" | |
| - ".github/workflows/contracts-ci.yml" | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "apps/contracts/**" | |
| - ".github/workflows/contracts-ci.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Rust contracts (fmt + clippy + test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.85.0" | |
| targets: wasm32-unknown-unknown | |
| components: rustfmt, clippy | |
| - name: Cache Rust build artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: apps/contracts | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| working-directory: apps/contracts | |
| - name: Clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| working-directory: apps/contracts | |
| - name: Run tests | |
| run: cargo test --all | |
| working-directory: apps/contracts |