ci: Check branch changes once per pull request

This commit is contained in:
jackos1998 committed 2026-11-26 21:47:57 +00:00
1 parent 7c577051ba
commit 5123ba7643
2 files changed
+5 -3

No files matched your search

+3 -2
View File
@@ -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
+2 -1
View File
@@ -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.