From f2f52d5b4d5e39585835719ca478445627e7ae87 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Wed, 25 Nov 2026 01:01:30 +0000 Subject: [PATCH] ci: Run only on pushes to `main` --- .gitea/workflows/ci.yaml | 2 +- AGENTS.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4f19418..4055014 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - pull_request: + branches: [main] jobs: check: diff --git a/AGENTS.md b/AGENTS.md index ac3e62c..e6e2dac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,8 +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: - the package with its tests, `clippy` (warnings as errors), `fmt` (`cargo fmt --check`), +- CI ([`.gitea/workflows/ci.yaml`](.gitea/workflows/ci.yaml)) runs `nix flake check` on 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. - `vm-test` (or `nix build -L .#checks.x86_64-linux.vm`) — the NixOS VM test of the broker module -- 2.56.0