Skip to content

ci: add downstream github action assurance gate#132

Merged
outofcoffee merged 2 commits into
mainfrom
ci/test-downstream-github-action
May 28, 2026
Merged

ci: add downstream github action assurance gate#132
outofcoffee merged 2 commits into
mainfrom
ci/test-downstream-github-action

Conversation

@outofcoffee
Copy link
Copy Markdown
Contributor

Exercise the official imposter-github-action against the CLI built from the current branch, so breaking changes to CLI commands or arguments are caught before they reach downstream consumers.

Summary

  • Add .github/workflows/downstream-action.yaml, running on push and pull_request.
  • Build the branch CLI with make build and place it on PATH at /usr/local/bin/imposter, where the action expects to find it.
  • Drive the real action steps end to end: start-mocks (imposter engine pull + imposter up) and stop-mocks (imposter down), then assert the mock responds and that it stops.

Implementation details

  • The action's setup step is deliberately skipped. It installs the released CLI from GitHub, which would mask the change under test; instead the branch binary is placed at the same location setup would use.
  • The action is checked out at main so the gate reflects the latest downstream code.
  • The engine version is pinned to 4.5.4 so a failure indicates a CLI change rather than a new engine release.
  • This gate surfaces the same incompatibility as imposter-github-action#3: the action's main still calls imposter down -t <engine>, but the CLI's down command no longer accepts -t. The gate will pass once that fix lands in the action's main.

@outofcoffee outofcoffee added the enhancement New feature or request label May 28, 2026
Build the current-branch CLI and drive the official
imposter-github-action against it, so breaking changes to CLI
commands or arguments are caught before reaching downstream
consumers.
@outofcoffee outofcoffee force-pushed the ci/test-downstream-github-action branch from 4bb5cee to 225ae9e Compare May 28, 2026 18:33
Drop the now-deprecated engine-type input from the stop-mocks step,
and point setup-go's build cache at the CLI checkout under cli/.
@outofcoffee outofcoffee self-assigned this May 28, 2026
@outofcoffee outofcoffee merged commit 3830b4d into main May 28, 2026
10 checks passed
@outofcoffee outofcoffee deleted the ci/test-downstream-github-action branch May 28, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant