Skip to content

chore: adopt workflow v0.74.5 CI validation#24

Merged
intel352 merged 2 commits into
mainfrom
chore/workflow-v0.74.5-ci-validation
Jun 6, 2026
Merged

chore: adopt workflow v0.74.5 CI validation#24
intel352 merged 2 commits into
mainfrom
chore/workflow-v0.74.5-ci-validation

Conversation

@intel352
Copy link
Copy Markdown
Contributor

@intel352 intel352 commented Jun 6, 2026

Summary

  • Bump github.com/GoCodeAlone/workflow to v0.74.5.
  • Validate rendered CI artifacts with the shared cigen.ValidateRenderedFiles helper before writing plugin output.
  • Fix the plugin default GitHub runner from invalid scalar self-hosted, Linux, X64 to ubuntu-latest, while preserving explicit runner overrides.
  • Refresh active workflow actions to verified current majors: actions/checkout@v6, actions/setup-go@v6.
  • Move release contract validation from the old wfctl v0.63.2 workaround to the fixed wfctl v0.74.5 release.

Verification

  • GOWORK=off go test ./internal -run 'TestExecuteCIGenerate' -count=1
  • GOWORK=off go test ./... -count=1
  • git diff --check

Depends on GoCodeAlone/workflow#863 and GoCodeAlone/workflow#862, released in workflow v0.74.5.

Copilot AI review requested due to automatic review settings June 6, 2026 08:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the plugin to align with github.com/GoCodeAlone/workflow v0.74.5 behavior and strengthens CI generation by validating rendered artifacts before writing them to disk, while also refreshing GitHub Actions workflows and fixing the default runner.

Changes:

  • Bump github.com/GoCodeAlone/workflow dependency to v0.74.5 (plus associated indirect updates).
  • Validate rendered CI artifacts via cigen.ValidateRenderedFiles before writing plugin output files.
  • Update defaults/docs/CI workflows: default runner to ubuntu-latest, workflow actions to newer majors, and wfctl used in release validation to v0.74.5.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/generator.go Switch default runner to ubuntu-latest and validate rendered artifacts before writing files.
internal/generator_test.go Add a test asserting rendered artifact validation failures are surfaced as typed output errors.
go.mod Bump workflow dependency to v0.74.5 and accept new indirect dependencies.
go.sum Update checksums to match the dependency graph after the workflow bump.
examples/minimal/config.yaml Update example commentary to reflect all platforms being config-derived via cigen.
.github/workflows/release.yml Update checkout/setup-go majors and move release contract validation to wfctl v0.74.5.
.github/workflows/ci.yml Update checkout/setup-go majors in CI workflow.

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

Comment thread internal/generator.go
@intel352 intel352 merged commit 88aebb0 into main Jun 6, 2026
3 checks passed
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