Skip to content

ci: split CI into reusable workflows with an orchestrator - #277

Merged
Primajin merged 1 commit into
mainfrom
ci/reusable-workflows
Aug 20, 2026
Merged

ci: split CI into reusable workflows with an orchestrator#277
Primajin merged 1 commit into
mainfrom
ci/reusable-workflows

Conversation

@Primajin

Copy link
Copy Markdown
Owner

Summary

Retrofits the monolithic `ci.yml` into the reusable-workflow layout, mirroring the merged Gyros exemplar. Each substantive job now lives in its own reusable `_.yml` (`on: workflow_call`), and `ci.yml` becomes a thin orchestrator that calls each one and aggregates results into a single `All checks green` gate.

No CI behaviour changes — steps, action versions, Node `'24'`, GPG import, the `peaceiris/actions-gh-pages` deploy, and the `ACTIONS_DEPLOY_KEY`/`CODECOV_TOKEN` secrets are preserved verbatim.

Changes

  • New `_jsdoc.yml` — the docs-build-and-deploy job. The job-level `concurrency: gh-pages` was promoted to workflow level so the serialisation still applies when called.
  • New `_lint.yml` — the XO lint job (`permissions: write-all`), GPG import step unchanged.
  • New `_test.yml` — the coverage/Codecov job (`permissions: contents: read`).
  • `ci.yml` — now orchestrates three caller jobs (each keeping its original `if:` and `permissions:`, plus `secrets: inherit`) and the inline `all-green` aggregator over all callers.
  • `codeql-analysis.yml` and `release-please.yml` left untouched.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Primajin

Copy link
Copy Markdown
Owner Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a25c61b) to head (11526bd).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #277   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           95        95           
=========================================
  Hits            95        95           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Primajin
Primajin merged commit 2ae3981 into main Aug 20, 2026
12 checks passed
@Primajin
Primajin deleted the ci/reusable-workflows branch August 20, 2026 13:36
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