-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.79 KB
/
ci.yml
File metadata and controls
59 lines (47 loc) · 1.79 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
name: CI
# Why this exists: until 2026-04-14 there was no automated check on this
# repository. Every "this passes locally" claim was unverified, and broken
# tests landed and stayed landed (see TECH_DEBT.md for the 39 wiring tests
# that accumulated). This workflow is the structural fix — it refuses to
# merge anything that doesn't pass fmt + clippy + the integration suite,
# so the next 39 broken tests cannot land the same way.
on:
pull_request:
branches: [develop, main]
push:
branches: [develop]
# Cancel superseded runs on the same branch so a flurry of pushes doesn't
# pile up jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
check:
name: fmt + clippy + test
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo registry & target
uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy (workspace, all targets)
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Build (workspace)
run: cargo build --workspace
# The integration suite has 43 currently-ignored tests tracked in
# TECH_DEBT.md. CI runs the default profile (skips ignored tests) so
# the green signal is honest. To make CI fail when previously-ignored
# tests start passing again — which would let us delete the ignore —
# add `--include-ignored` here once a triage pass has fixed them.
- name: Test (workspace)
run: cargo test --workspace