feat: CI integration — acceptance test matrix & release workflow#520
Merged
Conversation
Add new GitHub Actions workflow files for the Go edition: - go-test.yml: unit tests, acceptance test matrix (bash x go x OS), and integration tests (schedule/dispatch only) - go-release.yml: goreleaser-based release workflow on go/v* tags The acceptance matrix tests both Bash and Go editions across ubuntu-latest, macos-latest, and windows-latest (Bash excluded from Windows). Integration tests with real network access are gated behind schedule and workflow_dispatch triggers. Does not modify the existing test.yml for the Bash test suite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #504 — CI workflows for the Go edition.
Note: This PR adds new workflow files to .github/workflows/ and requires explicit maintainer approval per AGENTS.md.
Changes
.github/workflows/go-test.yml— unit tests + acceptance test matrix (bash x go x OS).github/workflows/go-release.yml— goreleaser release workflow ongo/v*tagsDetails
go-test.yml
Unit tests run
go test -v -race -count=1 ./internal/...andgo vetacross ubuntu-latest, macos-latest, and windows-latest.Acceptance tests run the shared acceptance suite against both Bash and Go editions across all three OS platforms. Bash edition is excluded from Windows (not natively supported). The
TFENV_TEST_BINARYenv var points at the appropriate binary. Windows correctly uses.exeextension.Integration tests (real network, real releases.hashicorp.com) are gated behind
schedule(nightly at 04:00 UTC) andworkflow_dispatch— they do NOT run on every PR.go-release.yml
Triggered by
go/v*tags. Uses goreleaser-action v6 to build and publish cross-platform binaries.What this does NOT change
The existing
test.ymlfor the Bash test suite is untouched.Closes #504