Skip to content

πŸ§ͺ test(server): e2e β€” admin POST credential β†’ agent pin β†’ resolve env… #1

πŸ§ͺ test(server): e2e β€” admin POST credential β†’ agent pin β†’ resolve env…

πŸ§ͺ test(server): e2e β€” admin POST credential β†’ agent pin β†’ resolve env… #1

Workflow file for this run

name: CI
# Runs the Rust workspace's build, test, lint, and format checks on
# every push to master, every push to a feature branch, and every PR
# targeting master. Postgres-backed tests (`crypto_parity`, the
# `repo_contracts` end-to-end suite) are gated behind
# `POSTGRES_TEST_URL` and skipped when unset, so the matrix runs
# without a database service.
on:
push:
branches:
- master
- 'feat/**'
- 'fix/**'
pull_request:
branches:
- master
concurrency:
# Cancel any in-flight run for the same ref so push-on-push doesn't
# queue stale work. PRs and branch pushes are isolated per-ref.
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Build, test, lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo registry & target
uses: Swatinem/rust-cache@v2
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo build (workspace)
run: cargo build --workspace --locked --all-targets
# Deny correctness + suspicious β€” both flag real bugs we never
# want shipped (use-after-move, MutexGuard-across-await, mistyped
# transmute, etc.). Style / complexity / pedantic / perf still
# produce warnings for review but don't block CI; we tighten
# the gate incrementally as those categories get clean.
- name: cargo clippy (workspace, deny correctness + suspicious)
run: |
cargo clippy --workspace --locked --all-targets -- \
-D clippy::correctness \
-D clippy::suspicious
- name: cargo test (workspace, no Postgres-gated tests)
run: cargo test --workspace --locked