Skip to content

ci: 升级 GitHub Actions runtime - #111

Merged
uvwt merged 1 commit into
mainfrom
ci/actions-checkout-v5-20260914
Sep 14, 2026
Merged

uvwt merged 1 commit into
mainfrom
ci/actions-checkout-v5-20260914

Conversation

@uvwt

@uvwt uvwt commented Sep 14, 2026

Copy link
Copy Markdown
Owner

变更

  • actions/checkout:v4 → v5
  • actions/setup-go:v5 → v6
  • actions/setup-dotnet:v4 → v5
  • github/codeql-action:v3 → v4
  • 新增 workflow 契约测试,防止上述 action 退回已弃用 major

原因

GitHub hosted runner 已提示这些旧 major 仍以 Node.js 20 为 runtime,并被强制兼容到 Node.js 24;CodeQL v3 同时明确提示将在 2026 年 12 月弃用。目标 major 均已从各官方仓库 tag 验证存在。

本地验证

  • go test ./scripts/test -run 'Test(WorkflowsUseCurrentActionMajors|CIWorkflowUsesFreshBoundedGoTests|WindowsInstallerWorkflowHasAlwaysPresentPullRequestGate)$' -count=1
  • go test ./scripts/test -count=1
  • actionlint .github/workflows/*.yml
  • git diff --check
  • 旧 major 引用检查为 0

GitHub 验证要求

最终 head 必须重新通过全部 required checks 与完整 Windows Installer gate,并检查 annotations 不再出现 Node.js 20 / CodeQL v3 弃用警告。

@uvwt
uvwt force-pushed the ci/actions-checkout-v5-20260914 branch from ed34af1 to 0fcd33a Compare September 14, 2026 12:07
@uvwt uvwt changed the title ci: 升级 checkout action 到 v5 ci: 升级 GitHub Actions runtime Sep 14, 2026
@uvwt
uvwt merged commit 4e2952d into main Sep 14, 2026
10 checks passed
@uvwt
uvwt deleted the ci/actions-checkout-v5-20260914 branch September 14, 2026 12:29
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.

1 participant