-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (47 loc) · 1.5 KB
/
ci.yml
File metadata and controls
55 lines (47 loc) · 1.5 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
jobs:
rust:
name: Rust (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Clone agentic-sdk (sibling dependency)
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test
run: cargo test --workspace
- name: Build release
run: cargo build --workspace --release
guardrails:
name: Guardrails
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone agentic-sdk (sibling dependency)
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
- name: Install command guardrails
run: bash scripts/check-install-commands.sh
- name: Canonical sister guardrails
run: bash scripts/check-canonical-sister.sh
- name: Runtime hardening guardrails
run: bash scripts/check-runtime-hardening.sh
- name: Primary problem regression
run: bash scripts/test-primary-problems.sh