ci: Run only on pushes to main
#2
No files matched your search
@@ -2,7 +2,7 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user