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