-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (65 loc) · 3.17 KB
/
Copy pathci.yml
File metadata and controls
69 lines (65 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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.98.1
# rustfmt/clippy are actually exercised in the sibling `lint.yml`
# workflow, not here — this job only needs the compiler.
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
# (A crate-scoped `--no-default-features` step lived here for the
# `blocks` activation feature. Both are gone: there is one codebook, no
# feature adds to it, and the guards that replaced the OFF-half gate are
# always compiled — `cargo test --workspace` above reaches them.)
#
# 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
# Exercise the `surrealql-hint` feature on ogar-knowable-from
# — auto-renders the schema_ddl_hint via the adapter's
# emit_surrealql_ddl on register_class_knowable_from. Closes the
# self-describing-registry loop (ADR-023 receipt).
- name: cargo test -p ogar-knowable-from --features surrealql-hint
run: cargo test -p ogar-knowable-from --features surrealql-hint
# Exercise the `ttl-parser` feature on ogar-adapter-ttl — pulls
# in oxttl / oxrdf for Turtle parsing. The emit path is feature-
# free, but the round-trip tests need the parser.
- name: cargo test -p ogar-adapter-ttl --features ttl-parser
run: cargo test -p ogar-adapter-ttl --features ttl-parser
# Exercise the `clickhouse-parser` feature on
# ogar-adapter-clickhouse-ddl — pulls in sqlparser-rs with the
# ClickHouseDialect for CREATE TABLE parsing. Same crate-scoped
# gating pattern as the other adapter feature tests.
- name: cargo test -p ogar-adapter-clickhouse-ddl --features clickhouse-parser
run: cargo test -p ogar-adapter-clickhouse-ddl --features clickhouse-parser
# Exercise the `vart-backend` feature on ogar-knowable-from —
# pulls in AdaWorldAPI/vart (versioned adaptive radix trie) as
# the reference KnowableFromStore impl. Same crate-scoped
# pattern as the other feature-gated test steps. Per-PR #25's
# "reference backend" promise, now real.
- name: cargo test -p ogar-knowable-from --features vart-backend
run: cargo test -p ogar-knowable-from --features vart-backend