fix: apply rustfmt for ci #69
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "codex/**" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: ubuntu-stable | |
| os: ubuntu-latest | |
| toolchain: stable | |
| - name: ubuntu-msrv | |
| os: ubuntu-latest | |
| toolchain: 1.88.0 | |
| - name: macos-stable | |
| os: macos-latest | |
| toolchain: stable | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all --check | |
| - name: Lint | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Test | |
| run: cargo test --workspace | |
| mainline-hero-smoke: | |
| name: mainline-hero-smoke | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Hero P0 CLI smoke | |
| run: cargo test -p crawfish-cli --test cli | |
| experimental-regression: | |
| name: experimental-regression | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Remote and federation regression tests | |
| run: | | |
| cargo test -p crawfish-runtime task_plan_routes_to_openclaw_and_streams_events -- --exact | |
| cargo test -p crawfish-runtime task_plan_routes_to_a2a_and_surfaces_treaty_lineage -- --exact | |
| cargo test -p crawfish-runtime task_plan_remote_review_required_creates_remote_evidence_bundle_and_queue_item -- --exact | |
| cargo test -p crawfish-runtime dispatching_remote_followup_creates_fresh_attempt_on_same_action -- --exact | |
| cargo test -p crawfish-runtime openclaw_inbound_submit_inspect_and_events_work_for_mapped_caller -- --exact | |
| experimental-openclaw-inbound: | |
| name: experimental-openclaw-inbound | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: integrations/openclaw-inbound/package-lock.json | |
| - name: Install OpenClaw inbound bridge deps | |
| run: npm ci --prefix integrations/openclaw-inbound | |
| - name: Test OpenClaw inbound bridge | |
| run: npm test --prefix integrations/openclaw-inbound |