Files
portal/vendor/lint/.gitea/workflows/test.yml
T
Bendik Aagaard Lynghaug d0d1cbf23d Bring the lint in (uhhm/iris main, history kept)
git-subtree-dir: vendor/lint
git-subtree-mainline: bedd306854
git-subtree-split: e3c68f9441
2026-09-30 15:23:16 +02:00

38 lines
1.2 KiB
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.
# Not the shared /var/local/cargo: the runner may only read it, and
# the portal git dependency has to be cloned into CARGO_HOME. This
# one lives under the writable target dir; the rustc wrapper the
# shared config would have set is given here instead.
CARGO_HOME: /var/local/cargo-target/iris-cargo-home
RUSTC_WRAPPER: /usr/bin/sccache
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