Skip to content

ci(ship-ci): reuse ci.yml via workflow_call instead of duplicating - #17

Open
mogul wants to merge 1 commit into
mainfrom
ci/ship-ci-reuse-workflow-call
Open

ci(ship-ci): reuse ci.yml via workflow_call instead of duplicating#17
mogul wants to merge 1 commit into
mainfrom
ci/ship-ci-reuse-workflow-call

Conversation

@mogul

@mogul mogul commented Jun 18, 2026

Copy link
Copy Markdown

Reconstructed from slopsmith/slopsmith-desktop#307 — original PR by @byrongamatos. Commits replayed with original authorship onto the current main.

Why

Follow-up to #306. ci.yml (PRs into release/**) and ship-ci.yml (PRs into main) carried an identical check job copy-pasted into both files — they'd inevitably drift (the npm-audit continue-on-error mismatch CodeRabbit flagged on #306 was exactly that class of bug). This mirrors the core repo's pattern (#779), where ship-ci reuses ci via workflow_call.

Change

  • ci.yml: add a workflow_call: trigger.
  • ship-ci.yml: replace the duplicated check job with uses: ./.github/workflows/ci.yml.

Behaviour is unchanged — both paths still run checkout → typecheck → non-blocking npm audit. Net −20 lines.

Self-test

This PR targets main, so ship-ci.yml runs on it and exercises the new workflow_call reuse end-to-end.

Note: Codex preflight not run (Codex CLI usage-limited until tomorrow); manual + CodeRabbit review.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Consolidated CI quality check workflows to ensure consistent validation standards across all pull request scenarios, reducing maintenance overhead through centralized workflow configuration.

Note: The target repository already incorporated the workflow_call reuse pattern with additional refinements (ci.yml omits a standalone pull_request trigger to avoid duplicate runs; ship-ci.yml covers both main and release/** branches; the caller job is named CI: to match org ruleset required contexts). This commit preserves the original authorship trail while the conflict resolution keeps the improved implementation.

ship-ci.yml (PRs into main) and ci.yml (PRs into release/**) had an
identical check job copy-pasted in both files, so they would drift over
time. Add a workflow_call trigger to ci.yml and have ship-ci.yml call it
with `uses: ./.github/workflows/ci.yml`, mirroring the core repo pattern.
Behaviour is unchanged — both still run checkout + typecheck + non-blocking
npm audit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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