Merge pull request #32 from AdaWorldAPI/claude/surrealql-ast-to-class… #9
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] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| jobs: | |
| check: | |
| name: cargo check + test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain (per rust-toolchain.toml) | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.95.0 | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: cargo check --workspace --all-targets | |
| run: cargo check --workspace --all-targets | |
| - name: cargo test --workspace | |
| run: cargo test --workspace | |
| # Exercise the feature-gated surrealql AST walk (lifts DDL -> | |
| # Class via the surrealdb-parser fork). Crate-scoped because the | |
| # parser dep is heavy and not needed by other workspace members; | |
| # gating by feature keeps the default build lean. | |
| - name: cargo test -p ogar-adapter-surrealql --features surrealdb-parser | |
| run: cargo test -p ogar-adapter-surrealql --features surrealdb-parser |