-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
47 lines (44 loc) · 1.53 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
# HOOK PARITY: this pipeline is mirrored by .githooks/pre-push.
# When editing this file, update the push hook to match.
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt -- --check
- name: Lint (zero warnings)
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --all --locked
- name: Lean build (no plugins — FOUNDATION pillar C)
run: |
cargo check -p modulex-cli --no-default-features --locked
cargo check -p modulex-mcp --no-default-features --locked
# COVERAGE GATE: mirrors `just cov-ci`. The floor (80% lines) is enforced
# here; keep it in sync with the justfile. Binary/pyo3 entrypoints are
# excluded (integration-tested, not unit-tested).
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Coverage (fail under the floor)
run: |
cargo llvm-cov --all-features --workspace \
--ignore-filename-regex '(main\.rs|modulex-py/src/lib\.rs)' \
--fail-under-lines 80