Files
arr/.gitea/workflows/audit.yml
T
Claude bbe53bac80
ci / web (push) Successful in 6s
e2e / e2e (push) Failing after 40s
ci / rust (push) Successful in 1m5s
ci: per-push gate, e2e and audit workflows
Gate runs fmt, clippy with warnings denied, cargo-machete, and nextest.
nextest comes from a prebuilt binary rather than `cargo install` to keep the
run short. Cache covers ~/.cargo and target/, keyed on Cargo.lock plus the
toolchain file. Nothing builds --release.

e2e is a separate workflow, main plus PRs touching the crates whose seams it
covers. cargo-deny is weekly, off the push path.

Closes #2

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 19:20:47 +01:00

48 lines
1.2 KiB
YAML

name: audit
# Advisories and licences. Deliberately off the per-push gate — DESIGN.md §12.
on:
schedule:
- cron: '17 4 * * 1'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build deps
run: |
apt-get update
apt-get install -y --no-install-recommends \
git curl ca-certificates build-essential pkg-config
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-audit-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-audit-
- name: Toolchain
run: |
if ! command -v cargo >/dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal --no-modify-path
fi
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: cargo-deny
run: |
export PATH="$HOME/.cargo/bin:$PATH"
command -v cargo-deny >/dev/null || cargo install cargo-deny --locked
cargo deny check