ci: Check branch changes once per pull request
This commit is contained in:
1 parent
7c577051ba
commit
5123ba7643
2 files changed
+5
-3
No files matched your search
@@ -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
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user