ci: cross-platform plugin build, Codecov PR comments, docs deploy#96
Merged
Conversation
Add cross-compilation step to the Build job that verifies the kubectl plugin compiles for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, and windows/amd64. Add codecov.yml with project and patch coverage targets (80%) and PR comment layout. Pass CODECOV_TOKEN to the upload action so Codecov can post coverage diff comments on PRs. Switch GitHub Pages source from branch to Actions deployment and add harden-runner to the docs build job for consistency with other workflows. Closes #71 Closes #64 Closes #74 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
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.
Changes
Cross-platform kubectl plugin build test (#71)
Add a cross-compilation step to the Build CI job that verifies
kubectl-attunecompiles for all supported platforms:
linux/amd64,linux/arm64darwin/amd64,darwin/arm64windows/amd64This catches platform-specific compilation issues (e.g.,
syscallusage,missing build tags) before release.
Codecov coverage diff comments (#64)
codecov.ymlwith project target (80%), patch target (80%), andPR comment configuration (
reach,diff,flags,fileslayout)CODECOV_TOKENsecret to the upload action so Codecov can postcoverage diff comments on PRs
Setup required: Add a
CODECOV_TOKENrepository secret fromcodecov.io.
Without the token, coverage uploads still work but PR comments are
disabled.
MkDocs GitHub Pages deployment (#74)
for
actions/deploy-pagesto work)harden-runnerto the docs build job for consistencyThe docs workflow (
.github/workflows/docs.yaml) already existed withbuild + deploy jobs. The only missing piece was the Pages source
configuration.
Closes #71
Closes #64
Closes #74