Skip to content

ci: clearer check labels and split lint jobs#1218

Open
MoonBoi9001 wants to merge 4 commits into
mainfrom
mb9/workflow-refactor
Open

ci: clearer check labels and split lint jobs#1218
MoonBoi9001 wants to merge 4 commits into
mainfrom
mb9/workflow-refactor

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

@MoonBoi9001 MoonBoi9001 commented May 15, 2026

TL;DR

Rewrites the CI workflow surface so every check label says what it actually runs. Splits the catch-all lint job into prettier, eslint and typecheck, and fixes a bug where the CLI Docker image was published from every pull-request build.

Motivation

The check list today reads "Check Formatting / check" and "CI / build (20, ubuntu-22.04)". The first hides three tools — prettier, eslint and tsc — behind a single dot, so a reviewer cannot tell which one flagged a violation. The second is named "CI" but really runs the test suite, which misleads contributors who expect "CI" to mean something broader. Separately, the CLI image workflow pushes to the registry from every pull-request build because of a hard-coded publish flag, so unreviewed branches publish images. Renaming the labels is a natural moment to fix that too.

Summary

  • Renames check-formatting.yml to lint.yml; splits into prettier, eslint, typecheck jobs.
  • Renames ci.yml to tests.yml; matrix shows as tests / node 20 and tests / node 22.
  • Merges the image workflows into docker-build.yml with agent and cli jobs.
  • Replaces the CLI workflow's hard-coded push: true with the agent's PR-exclusion conditional.
  • Extends codeql-analysis.yml to PRs targeting main-dips, bumps its action versions.
  • Bumps checkout, setup-node and codeql-action to newer major versions; adds yarn caching to the lint and tests jobs.
  • Runs yarn install --frozen-lockfile in the lint and tests workflows for consistent installs.

After merge, CI runs four workflows: lint (prettier, eslint, typecheck), tests (node 20, node 22), docker build (agent images plus cli), and codeql.

Generated with Claude Code

Workflow names and job IDs now describe what each check actually runs.
Lint splits into prettier, eslint, typecheck so failures point at the
specific tool. CodeQL extends to PRs targeting main-dips. CLI image
no longer pushes from PR builds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-project-automation github-project-automation Bot moved this to 🗃️ Inbox in Indexer May 15, 2026
MoonBoi9001 and others added 2 commits May 15, 2026 23:25
Quote \$GITHUB_ENV to silence SC2086, and add a disable directive plus
a short explanation for the two intentional unquoted substitutions in
the manifest creation (both rely on word-splitting to expand into
multiple shell args).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The previous reference resolved nothing: the runnable action lives in
the osv-scanner-action subdir of the repo (not actions/osv-scanner),
and the project publishes patch tags only — no moving @v2 tag exists.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 requested a review from tmigone May 15, 2026 16:01
@MoonBoi9001 MoonBoi9001 added DIPS and removed DIPS labels May 28, 2026
The yarn-audit and OSV jobs flag advisories already in the committed dependency tree, so they
fail at once and would block later pull requests whose authors changed nothing. Ship the
check-label cleanup alone; scanning returns once there is a plan to clear the backlog.
@MoonBoi9001 MoonBoi9001 changed the title ci: clearer check labels and dependency vulnerability scanners ci: clearer check labels and split lint jobs Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🗃️ Inbox

Development

Successfully merging this pull request may close these issues.

1 participant