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
# Quick gate for branch protection (required check on main).
#
# Deliberately NOT the full matrix (release.yml owns that) and NOT fmt
# (the tree is not rustfmt-clean; enforcing it now would land a giant
# format diff — style stays advisory until someone opts the tree in).
# This job answers one question fast: does it still compile (locked)?
# Cache makes PR runs incremental; ubuntu-only (platform breakage is
# release.yml's beat, not the merge gate's).
name: ci-quick
on:
pull_request:
branches:
push:
branches:
permissions:
contents: read
jobs:
check:
name: quick-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: check (locked, no codegen)
run: cargo check --locked --all-targets
- name: doc (strict missing_docs gate)
run: cargo doc --locked --no-deps -p hakodb
env:
RUSTDOCFLAGS: -D warnings
- name: doctests (runnable API examples)
run: cargo test --doc -p hakodb