-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
38 lines (34 loc) · 1.14 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
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