Skip to content

ci: add org-wide reusable Go CI workflow#2

Merged
chazmaniandinkle merged 2 commits intomainfrom
ci/add-reusable-workflows
Apr 13, 2026
Merged

ci: add org-wide reusable Go CI workflow#2
chazmaniandinkle merged 2 commits intomainfrom
ci/add-reusable-workflows

Conversation

@chazmaniandinkle
Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/ci.yml that calls the org-wide go-ci.yml reusable workflow from cogos-dev/.github
  • Runs on push and PR to main: go vet, go build, go test -race, and golangci-lint
  • Go version pinned to 1.24 per go.mod

Test plan

  • Verify CI jobs appear on this PR's checks tab
  • Confirm build, test, and lint jobs all pass
  • Confirm caching works (second run should be faster)

🤖 Generated with Claude Code

chazmaniandinkle and others added 2 commits April 13, 2026 17:58
Calls cogos-dev/.github go-ci.yml for vet, build, test, and lint
on push/PR to main. Go version pinned to 1.24 per go.mod.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Handle all unchecked return values flagged by golangci-lint errcheck:
- resp.Body.Close / f.Close in defers: wrap with _ = assignment
- enc.Encode / dec.Decode: check error and handle (log or exit)
- server.Shutdown: check and log error
- fmt.Sscanf: discard return values explicitly
- io.Copy: check error return

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chazmaniandinkle chazmaniandinkle merged commit e091f42 into main Apr 13, 2026
4 checks 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