Skip to content

ci: modernize Node validation and guard drafts - #183

Draft
rtfpessoa wants to merge 3 commits into
masterfrom
rodrigo/upgrade-cli-ci
Draft

rtfpessoa wants to merge 3 commits into
masterfrom
rodrigo/upgrade-cli-ci

Conversation

@rtfpessoa

Copy link
Copy Markdown
Owner

This is 1 of 4 in the dependency upgrade: CI → runtime → ESLint → tooling. Review this first. The CLI manifest, lockfile, and runtime engine declaration do not change here.

The previous contributor matrix used Node 16/18/20 and bypassed engines. This pins the same modern contributor versions as diff2html 3.5.0, enables frozen Yarn Classic installs, and makes the test fixtures independent of checkout paths. The legacy Codacy image cannot run modern Node Actions, so only git-version runs in it; checkout and artifact upload run on Ubuntu. The versions artifact explicitly includes .version and .tag.

Important

Draft PRs skip the entire job that tags and publishes. Existing non-draft PR and master push eligibility is unchanged. This is a draft for build verification, not release approval.

  • Verified locally: yarn run validate and frozen installs on Node 22.23.5, 24.22.3, and 26.13.1 (14 tests per leg); workflow schema and expressions passed actionlint. Nine unchanged ShellCheck diagnostics remain in the publish steps.
  • Check on GitHub: the version job succeeds, the versions artifact has both dotfiles, all three builds pass, and publish is skipped. Docker and the hosted artifact transfer were not exercised locally.
  • Reviewer focus: the read-only checkout mount and version output, artifact contents, and the draft guard. The workflow change is reversible, but changing publication eligibility has external effects; do not mark ready to test the guard.

Version job · Publish guard

Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
Use the upstream Node matrix and preserve the version artifact.

Skip tagging and publication for draft pull requests.

Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>

This branch has not been deployed

No deployments
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