Skip to content

ci: build, vet and test on every push and PR - #4

Merged
BorisTyshkevich merged 1 commit into
masterfrom
ci-build
Sep 16, 2026
Merged

BorisTyshkevich merged 1 commit into
masterfrom
ci-build

Conversation

@BorisTyshkevich

Copy link
Copy Markdown
Collaborator

There is no CI here beyond the skill-bundle release job, so nothing verifies that master builds.

The workflow

  • gofmt (excluding _legacy/), go vet ./..., go test ./... -race
  • cross-compiles linux/amd64, linux/arm64, darwin/arm64, darwin/amd64 — the Altinity expert container image cross-compiles this binary for the two linux targets, so a platform-specific break should fail here rather than in an image build
  • smoke-tests the freshly built binary (--help, version)
  • concurrency group so superseded runs cancel

The gofmt commit

Four files were already unformatted on master (cmd/root.go, pkg/api/oauth.go, pkg/config/config.go, internal/skillbundle/install_test.go) — a gate that starts red is a gate everyone learns to ignore, so they are gofmt'd here. The changes are mechanical: var-block alignment and a doc-comment reflow. _legacy/ is left alone and excluded from the check.

Verified locally: gofmt -l clean outside _legacy/, go vet clean, go test ./... -race passes, all four cross-builds succeed.

The repo had no CI beyond the skill-bundle release job, so nothing checked that
master builds. Add a workflow that runs gofmt, go vet, go test -race, and then
cross-compiles for linux/amd64, linux/arm64 and both darwin targets - the
expert container image cross-compiles this binary for the two linux ones, so a
platform break should fail here rather than in an image build. A smoke test
runs the freshly built binary.

Four files were already unformatted (the gate cannot start red), so they are
gofmt'd in the same commit; _legacy/ is excluded from the check.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DZbMALUG7sRRxAx7A4Ffri
@BorisTyshkevich
BorisTyshkevich merged commit a533dbc into master Sep 16, 2026
1 check passed
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