Continuous integration means every push is built and tested by a machine that isn't yours, so "works on my laptop" can't sneak through. guzva uses GitHub Actions: the file .github/workflows/ci.yml describes two jobs that run in parallel on fresh Ubuntu machines on every push to master and every pull request. Pushes that change only docs skip it.
Job go (about 6 min)
| Step | Catches |
|---|---|
gofmt | Unformatted code (style drift makes diffs noisy) |
go vet | Suspicious code the compiler accepts: wrong printf verbs, copied locks |
go test ./... | Every unit test, including the privacy tests |
| qa suites | A real binary on a local port, tested over HTTP: ingest, caching, the public page |
go test -race -short | Data races between goroutines |
| CSS freshness and budgets | A stylesheet that doesn't match its source, or one that grew past its size budget |
Why the qa suites: they existed for weeks without running anywhere and fell 13 checks behind the real page (found 2026-11-04). A test that doesn't run is not a test, so now CI runs them.
Job firmware (about 2 min)
| Step | Catches |
|---|---|
pio run | Camera firmware that doesn't compile |
| TLS grep gate | Certificate checking switched off in a production build |
| Privacy tests | Re-run separately because this gate must never be skipped |
The real settings.h holds Wi-Fi passwords and is never committed; CI copies the example file so the build works.
Rules
make testlocally is the gate before every commit; CI is the second check.- A red CI is fixed before starting anything else.
- Read the exit status, not a filtered log: on 2026-11-07 a
grep FAILhid a gofmt failure.
Planned (O2)
govulncheck(known vulnerabilities in the code paths we actually call) andstaticcheck.- Actions pinned to exact commits instead of tags, which their authors can move. CI currently warns that
checkout@v4,cache@v4andsetup-go@v5run on deprecated Node 20. - Dependabot pull requests for action and Go module updates.
- A release job that builds the deployable binary on each tag.