question_lint becomes `iris check`, needs_replay becomes `iris replay`, and the needs module and local-checkout loaders come with them. Portal is a library dependency pinned to the release iris matches (v0.3.36), so every type iris reads is the site's own and the two never disagree about what a page is. `iris --path questions` still works, so a content repo's one-line CI needs only a new path. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L4jrCgLiKKHAEFuZUJjckH
33 lines
916 B
YAML
33 lines
916 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: bare
|
|
env:
|
|
# Same shared toolchain and cache as uhhm/portal's workflows.
|
|
CARGO_HOME: /var/local/cargo
|
|
RUSTUP_HOME: /var/local/rustup
|
|
PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
|
|
SCCACHE_DIR: /var/local/sccache
|
|
SCCACHE_SERVER_PORT: "4228"
|
|
CARGO_TARGET_DIR: /var/local/cargo-target
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Test
|
|
run: cargo test
|
|
|
|
# The one thing a lint must never do is reject the content it
|
|
# is meant to serve: every live content repo has to pass.
|
|
- name: Check the live content repos
|
|
run: |
|
|
cargo build --release
|
|
for repo in uhhm/questions redoal/questions; do
|
|
/var/local/cargo-target/release/iris check --repo "${{ github.server_url }}/$repo"
|
|
done
|