Skip to content

ci: modernize workflows and add goreleaser#8

Merged
MichaelSp merged 2 commits into
mainfrom
fix/modernize-ci-workflows
Jun 11, 2026
Merged

ci: modernize workflows and add goreleaser#8
MichaelSp merged 2 commits into
mainfrom
fix/modernize-ci-workflows

Conversation

@MichaelSp

Copy link
Copy Markdown
Owner

Summary

  • Bump actions/checkout → v4, actions/setup-go → v5; read Go version from go.mod (no hardcoded version)
  • Enable module cache in setup-go, add concurrency groups (cancel-in-progress on CI, never on release), minimal permissions: contents: read, job-level timeout-minutes
  • Replace manual make check with golangci/golangci-lint-action@v9
  • Replace the fragile 6-step manual build/upload in release.yml with goreleaser/goreleaser-action@v7 + new .goreleaser.yaml

Adapted from danielfoehrKn/kubeswitch#196 — homebrew dispatch omitted for now.

Test plan

  • CI workflow triggers on PR and completes successfully
  • .goreleaser.yaml validates locally: goreleaser check
  • Release workflow triggers on a published release and uploads assets via goreleaser

- Bump actions/checkout to v4, actions/setup-go to v5
- Read Go version from go.mod instead of hardcoding it
- Enable module cache in setup-go
- Replace manual make check with golangci/golangci-lint-action@v9
- Add concurrency groups (cancel-in-progress on CI, not on release)
- Add minimal permissions (contents: read at workflow level)
- Add job-level timeout-minutes
- Replace manual 6-step build/upload in release.yml with goreleaser
- Add .goreleaser.yaml with project_name kswitch, module path updated
@MichaelSp MichaelSp merged commit 3a4d88d into main Jun 11, 2026
4 checks passed
@MichaelSp MichaelSp deleted the fix/modernize-ci-workflows branch June 11, 2026 15:40
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