Record session state classification gap from dogfood #10
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 | |
| - 'gaebal/**' | |
| - 'omx-issue-*' | |
| paths: | |
| - .github/workflows/rust-ci.yml | |
| - rust/** | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/rust-ci.yml | |
| - rust/** | |
| workflow_dispatch: | |
| concurrency: | |
| group: rust-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| working-directory: rust | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| fmt: | |
| name: cargo fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: rust -> target | |
| - name: Check formatting | |
| run: cargo fmt --all --check | |
| test-workspace: | |
| name: cargo test --workspace | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: rust -> target | |
| - name: Run workspace tests | |
| run: cargo test --workspace | |
| clippy-workspace: | |
| name: cargo clippy --workspace | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: rust -> target | |
| - name: Run workspace clippy | |
| run: cargo clippy --workspace |