feat(CC-0003): add minimal GitHub Actions CI workflow#5
Merged
Conversation
berendt
added a commit
that referenced
this pull request
Mar 1, 2026
Reviewer's GuideAdds a minimal GitHub Actions CI workflow for Go projects with lint and test jobs, pinned action SHAs, least-privilege permissions, concurrency controls, and accompanying reference documentation and planwerk metadata updates. Sequence diagram for CI workflow execution on GitHub eventssequenceDiagram
actor Developer
participant GitHub
participant Workflow_CI
participant Job_lint
participant Job_test
participant Runner_lint
participant Runner_test
Developer->>GitHub: Push to main or open/update PR
GitHub->>Workflow_CI: Trigger workflow on push or pull_request
Workflow_CI->>Workflow_CI: Apply permissions contents: read
Workflow_CI->>Workflow_CI: Apply concurrency group github.ref-github.workflow
par Run lint job
Workflow_CI->>Job_lint: Start job lint (timeout 10m)
Job_lint->>Runner_lint: Provision ubuntu-latest runner
Runner_lint->>Runner_lint: Run actions/checkout@34e1148
Runner_lint->>Runner_lint: Run golangci-lint-action@1e7e51e
Runner_lint-->>Job_lint: Lint results
and Run test job
Workflow_CI->>Job_test: Start job test (timeout 15m)
Job_test->>Runner_test: Provision ubuntu-latest runner
Runner_test->>Runner_test: Run actions/checkout@34e1148
Runner_test->>Runner_test: Run actions/setup-go@40f1582 with go-version-file go.work
Runner_test->>Runner_test: Execute make test
Runner_test-->>Job_test: Test results
end
Job_lint-->>Workflow_CI: Job status (success/failure)
Job_test-->>Workflow_CI: Job status (success/failure)
Workflow_CI-->>GitHub: Combined CI status
GitHub-->>Developer: CI checks reported on commit or PR
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
- Add CI workflow with parallel lint and test jobs on push to main and PRs - Pin all GitHub Actions to commit SHAs for supply-chain security - Migrate .golangci.yml to v2 format for golangci-lint v2.10 compatibility - Scope lint targets to workspace modules (internal/common, operators/c5c3, operators/keystone) - Set least-privilege permissions (contents: read) and concurrency groups to cancel superseded runs - Configure Go version via go.work for consistent toolchain across jobs - Add reference documentation for CI workflow configuration and conventions AI-assisted: Claude Code On-behalf-of: @SAP christian.berendt@sap.com Signed-off-by: Christian Berendt <berendt@23technologies.cloud>
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.
to main and on all pull requests
make testwith 15min timeout