Skip to content

feat(ci): delegate unit tests to shared-go-test workflow#57

Open
onuryilmaz wants to merge 2 commits into
mainfrom
feat/shared-workflows
Open

feat(ci): delegate unit tests to shared-go-test workflow#57
onuryilmaz wants to merge 2 commits into
mainfrom
feat/shared-workflows

Conversation

@onuryilmaz

Copy link
Copy Markdown
Contributor

Summary

Migrates test.yaml to consume reusable workflows from cloudoperators/common as part of cloudoperators/common#2086.

test.yaml

Job Before After
unit Inline actions/checkout + actions/setup-go + make tidy + make test shared-go-test.yaml@main with test-target: test
e2e Inline (unchanged) Inline — retained as-is; uses cloudctl-specific k3d setup that does not map to the greenhouse KinD composite action

The make tidy step has been intentionally removed — module tidiness should be enforced in development, not in CI test runs.

Dependencies

Requires cloudoperators/common#65 to be merged before this workflow will resolve correctly in CI.

Test plan

  • Trigger a PR to verify the unit job resolves from the shared workflow
  • Verify e2e job continues to pass unchanged

Copilot AI review requested due to automatic review settings June 24, 2026 15:21
@onuryilmaz onuryilmaz requested review from a team as code owners June 24, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Migrates the CI unit test job in cloudctl to a reusable workflow from cloudoperators/common, reducing duplicated workflow logic while keeping the repository-specific k3d E2E job inline.

Changes:

  • Replaced the inline unit job steps with cloudoperators/common/.github/workflows/shared-go-test.yaml and passed test-target: test.
  • Updated the E2E job to use newer pinned actions/checkout and actions/setup-go, switching Go version resolution to go-version-file: go.mod with caching enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/test.yaml
Replace inline unit test steps with a call to
cloudoperators/common shared-go-test.yaml.

The e2e job retains its inline steps because it uses a cloudctl-specific
k3d setup that does not map to the greenhouse KinD composite action.

Part of cloudoperators/common#2086

Signed-off-by: onuryilmaz <onur.yilmaz@sap.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/test.yaml
Comment thread .github/workflows/test.yaml
Signed-off-by: onuryilmaz <onur.yilmaz@sap.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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.

2 participants