Skip to content

ci: cross-platform plugin build, Codecov PR comments, docs deploy#96

Merged
SebTardif merged 1 commit into
mainfrom
ci/cross-build-codecov-docs
May 27, 2026
Merged

ci: cross-platform plugin build, Codecov PR comments, docs deploy#96
SebTardif merged 1 commit into
mainfrom
ci/cross-build-codecov-docs

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Changes

Cross-platform kubectl plugin build test (#71)

Add a cross-compilation step to the Build CI job that verifies kubectl-attune
compiles for all supported platforms:

  • linux/amd64, linux/arm64
  • darwin/amd64, darwin/arm64
  • windows/amd64

This catches platform-specific compilation issues (e.g., syscall usage,
missing build tags) before release.

Codecov coverage diff comments (#64)

  • Add codecov.yml with project target (80%), patch target (80%), and
    PR comment configuration (reach,diff,flags,files layout)
  • Pass CODECOV_TOKEN secret to the upload action so Codecov can post
    coverage diff comments on PRs

Setup required: Add a CODECOV_TOKEN repository secret from
codecov.io.
Without the token, coverage uploads still work but PR comments are
disabled.

MkDocs GitHub Pages deployment (#74)

  • Switch GitHub Pages source from branch to Actions deployment (required
    for actions/deploy-pages to work)
  • Add harden-runner to the docs build job for consistency

The docs workflow (.github/workflows/docs.yaml) already existed with
build + deploy jobs. The only missing piece was the Pages source
configuration.

Closes #71
Closes #64
Closes #74

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>
@github-actions github-actions Bot added area/ci CI/CD workflows size/s 10-49 lines changed labels May 27, 2026
@SebTardif SebTardif merged commit 570681c into main May 27, 2026
33 checks passed
@SebTardif SebTardif deleted the ci/cross-build-codecov-docs branch May 27, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD workflows size/s 10-49 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: deploy MkDocs site to GitHub Pages ci: add kubectl plugin cross-platform build test ci: add Codecov coverage diff comments on PRs

1 participant