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