Skip to content

Add CI with tests and gofmt check - #14

Merged
sfreiberg merged 1 commit into
masterfrom
ci
Oct 12, 2026
Merged

sfreiberg merged 1 commit into
masterfrom
ci

Conversation

@sfreiberg

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions workflow (.github/workflows/ci.yml) that runs on pushes to master and on every pull request:

  • Formatting: fails if gofmt -l . lists any files, and prints which ones.
  • Tests: go test -race ./....

The Go version comes from go.mod (go-version-file), so CI follows the module's version automatically, for example after #13 moves it to 1.26.

Also runs gofmt on agent_unix.go, which was missing the //go:build !windows line. Without that fix the new check would fail on master.

Notes

Run gofmt and go test -race on pushes to master and on pull requests.
Also gofmt agent_unix.go, which was missing the //go:build line, so the
check passes.
@sfreiberg
sfreiberg merged commit 871f8f7 into master Oct 12, 2026
1 check passed
@sfreiberg
sfreiberg deleted the ci branch October 12, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant