Skip to content

feat: add Go package release flow and Coveralls support - #13

Open
neilime wants to merge 4 commits into
mainfrom
feat/reusable-go-release-workflows
Open

neilime wants to merge 4 commits into
mainfrom
feat/reusable-go-release-workflows

Conversation

@neilime

@neilime neilime commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Go consumers need shared release planning, validation, packaging and publication, plus Coveralls for their existing native coverage profile. This supplies the contracts used by next-ip #19 and http-header-authenticator #51, following the public flow of the sibling Node.js and PHP repositories.

  • prepare-package-release.yml plans the semantic-version tag without mutating the repository. It returns ready, no-changes or released, with verification for manual tag recovery.
  • The optional package stage of continuous-integration.yml calls the dedicated package action after enabled checks pass. GoReleaser owns platforms and archive layout, and the workflow returns package-artifact-id. Snapshot packaging never publishes.
  • release.yml verifies the artifact's run, commit, planned tag and availability, then publishes those exact archives through ci-github-publish 3.1.2. Optional environment protection and complete changelog-summary configuration are supported.
  • coverage: coveralls publishes the same native profile on the primary matrix version while retaining GitHub summaries and artifacts.

Validation: 19 Node contract tests pass in 0.24 seconds. They cover preparation status and recovery, conflicting tags, invalid artifact provenance, snapshots, pull request publication and escaping artifact paths. The dedicated package-action workflow checks real GoReleaser packaging, artifact transfer, checksums and the executable; the existing CI fixture also exercises opt-in packaging. No test publishes a release. All applicable configured Super Linter checks pass locally.

CI Dokumentor 0.6.0 regenerated the action and workflow references from their metadata. ADR 0003 records the public flow and supersedes ADR 0002 while preserving its history.

@github-actions github-actions Bot added the type: feature Introduces a new feature label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
GO Pass ✅
GO_MODULES Pass ✅
GO_RELEASER Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Comment thread .github/workflows/build-release.md Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont have "build-release" workflow in other "hoverkraft-tech/ci-github-*" repos, try to be consistent and adopt same naming/behavior pattern

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworked the public flow to match the sibling repositories: prepare-package-release.yml plans or recovers the tag, continuous-integration.yml packages only after enabled checks pass, and release.yml publishes the same validated artifact. The standalone build-release.yml is removed; the package action has its own test workflow. Updated next-ip #19 to use this flow and regenerated the references with CI Dokumentor.

All 19 contract tests and the applicable local linters pass. The artifact provenance, conflicting-tag and no-change/recovery checks are retained. I am leaving this reopened thread open for your review.

@neilime neilime changed the title feat: add reusable Go release workflows and Coveralls support feat: add Go package release flow and Coveralls support Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant