Skip to content

feat: add GoReleaser and CI workflows - #2

Merged
pavelanni merged 4 commits into
mainfrom
feature/goreleaser
Apr 17, 2026
Merged

pavelanni merged 4 commits into
mainfrom
feature/goreleaser

Conversation

@pavelanni

Copy link
Copy Markdown
Collaborator

Summary

  • Add .goreleaser.yaml for cross-platform release builds (linux/darwin/windows, amd64/arm64)
  • Add release workflow (triggers on v* tags, uses goreleaser-action v6)
  • Add CI workflow (tests + golangci-lint on PRs and main pushes)

To cut a release

git tag v0.1.0
git push origin v0.1.0

GoReleaser creates a GitHub release with binaries, checksums, and changelog.

Test plan

  • goreleaser check passes locally
  • CI workflow runs on this PR
  • First release after merge: git tag v0.1.0 && git push origin v0.1.0

🤖 Generated with Claude Code

- GoReleaser builds cross-platform binaries (linux/darwin/windows,
  amd64/arm64) with version injection via ldflags
- Release workflow triggers on v* tags
- CI workflow runs tests and golangci-lint on PRs and main pushes

Signed-off-by: Pavel Anni <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@pavelanni has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 26 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 14 minutes and 26 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ec567de1-523c-4a6a-855a-cbf6f7ba3aec

📥 Commits

Reviewing files that changed from the base of the PR and between 8e0baf2 and b29cf4a.

📒 Files selected for processing (9)
  • .github/workflows/ci.yaml
  • .github/workflows/release.yaml
  • .golangci.yml
  • .goreleaser.yaml
  • internal/cli/validate.go
  • pkg/oci/inspect.go
  • pkg/oci/pack.go
  • pkg/oci/promote.go
  • pkg/oci/pull.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/goreleaser

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Add .golangci.yml excluding errcheck for fmt.Fprint* (stdout writes)
- Use defer func() { _ = f.Close() }() for read-only file handles
- Extract extractFile helper for scoped close in tar extraction

Signed-off-by: Pavel Anni <[email protected]>
@pavelanni
pavelanni merged commit c57afb0 into main Apr 17, 2026
4 checks passed
@pavelanni
pavelanni deleted the feature/goreleaser branch April 17, 2026 01:19
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