Skip to content

chore(ci): modernize github actions (sha-pin, composite, windows-latest)#29

Merged
codepuncher merged 12 commits into
mainfrom
chore/update-github-actions
Jun 24, 2026
Merged

chore(ci): modernize github actions (sha-pin, composite, windows-latest)#29
codepuncher merged 12 commits into
mainfrom
chore/update-github-actions

Conversation

@codepuncher

Copy link
Copy Markdown
Owner

What

Full modernization pass over every GitHub Actions workflow.

  • SHA-pin all 17 third-party actions to a 40-char commit SHA with a # vX.Y.Z comment, replacing floating @vN, @latest, and bare tags. Resolved against the GitHub API.
  • actions/cache v5 -> v6 (only cross-major bump; ESM-only repackage, no API change).
  • New composite action .github/actions/setup-vcpkg bundling get-cmake + cache + run-vcpkg, called by the ci test/build/clang-tidy jobs and the release job. The three pins now live in one place; a cache-prefix input preserves the original per-job cache namespaces (vcpkg-tests- for tests, vcpkg- elsewhere).
  • Windows jobs moved windows-2022 -> windows-latest (2022 is being retired).
  • Dependabot aligned: chore(deps) commit prefix (so its PRs pass the semantic-PR-title check) and grouped action bumps into one weekly PR.
  • The clang-tidy job keeps FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 with a comment: ilammy/msvc-dev-cmd and KyleMayes/install-llvm-action still declare node20.

Verification

actionlint clean except two pre-existing SC2129 style nits (confirmed present at base, out of scope). All floating-pin greps return CLEAN. Live CI/Lint run will exercise the composite on windows-latest.

Copilot AI review requested due to automatic review settings June 24, 2026 09:30

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

Modernizes the repository’s GitHub Actions CI/release automation by replacing floating action references with SHA-pinned versions, consolidating repeated vcpkg setup into a reusable composite action, and updating Windows runners/settings to current defaults.

Changes:

  • SHA-pin all referenced third-party actions (replacing @vN/@latest) and bump actions/cache to v6.
  • Introduce a composite action to standardize CMake/Ninja install + vcpkg cache restore + vcpkg setup across jobs.
  • Move Windows jobs from windows-2022 to windows-latest, and align Dependabot commit prefixes/groups for workflow updates.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/setup.yml SHA-pin actions/checkout used by the template initialization workflow.
.github/workflows/release.yml Switch to windows-latest, SHA-pin actions, and use the new vcpkg composite action.
.github/workflows/pr-title.yml SHA-pin semantic PR title check action.
.github/workflows/nexus-upload.yml SHA-pin checkout, git-cliff, and Nexus upload actions.
.github/workflows/lint.yml SHA-pin checkout, shell-linter, dprint, and vale actions.
.github/workflows/ci.yml Switch Windows jobs to windows-latest, SHA-pin actions, and reuse vcpkg composite action across jobs.
.github/dependabot.yml Configure Dependabot commit prefix and group GitHub Actions updates.
.github/actions/setup-vcpkg/action.yml New composite action bundling get-cmake, cache restore, and vcpkg setup with a configurable cache key prefix.

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

Comment thread .github/workflows/lint.yml

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 10 out of 10 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/lint.yml

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 10 out of 10 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/lint.yml
Comment thread README.md
Copilot AI review requested due to automatic review settings June 24, 2026 13:16

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 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/lint.yml
@codepuncher codepuncher merged commit 520f6ff into main Jun 24, 2026
14 checks passed
@codepuncher codepuncher deleted the chore/update-github-actions branch June 24, 2026 13:43
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