From 5123ba7643a5004888e90b535a22000ba68fab53 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 26 Nov 2026 21:47:57 +0000 Subject: [PATCH] ci: Check branch changes once per pull request --- .gitea/workflows/ci.yaml | 5 +++-- AGENTS.md | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4f19418..45ed77d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -2,6 +2,7 @@ name: CI on: push: + branches: [main] pull_request: jobs: @@ -18,7 +19,7 @@ jobs: extra-conf: | sandbox-fallback = false - # Builds the package with its tests, clippy, rustfmt and the VM test (which needs KVM), and - # evaluates the other outputs + # Builds the package with its tests, runs clippy, rustfmt, shellcheck and the VM test + # (which needs KVM), and evaluates the other outputs - name: Check the flake run: nix flake check -L diff --git a/AGENTS.md b/AGENTS.md index ac3e62c..3bd3845 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,7 +39,8 @@ of devenv's scripts, `devenv test` or the demo's host side. errors) and the tests. - `cargo fmt` — the crate is formatted with `rustfmt` (`rustfmt.toml`); run it on code you change. - `nix build` — the package, which also runs the tests. -- CI ([`.gitea/workflows/ci.yaml`](.gitea/workflows/ci.yaml)) runs `nix flake check` on every push: +- CI ([`.gitea/workflows/ci.yaml`](.gitea/workflows/ci.yaml)) runs `nix flake check` for pull + requests and pushes to `main`: the package with its tests, `clippy` (warnings as errors), `fmt` (`cargo fmt --check`), `shellcheck` on `src/**/*.sh` and the VM test. Keep them passing. `nix flake check --no-build` fails where the VM test's keys haven't been built, because the test reads them at evaluation.