ci: consolidate PR workflows into one CI workflow with an all-green gate - #276
Merged
Conversation
Merge the jsdoc, lint, and test workflows into a single ci.yml, each preserved as its own job with its own permissions, and add an "All checks green" aggregator job that fails if any job failed or was cancelled. codeql-analysis.yml and release-please.yml are left untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
Author
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #276 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 95 95
=========================================
Hits 95 95 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Keep the rest of CI out of the gh-pages concurrency group so it is not serialised/cancelled alongside the docs deploy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates the three PR-check workflows (
jsdoc,lint,test) into a singleci.yml, each preserved as its own job, and adds anAll checks greenaggregator so a single required status can gate the PR.Structure mirrors the validated reference template (
Primajin/Gyrosci.yml):push: [main]+pull_request: [opened, reopened, synchronize, closed].permissions:(copied from the origin workflow's top-level permissions;contents: readwhere the origin had none).if: github.event_name == 'push' || github.event.action != 'closed'.all-greenjob named exactlyAll checks green(if: always(),needs:every other job) fails if any job failed or was cancelled.'24'to match the reference idiom.Left separate (untouched)
codeql-analysis.ymlrelease-please.ymlRemoved
.github/workflows/jsdoc.yml.github/workflows/lint.yml.github/workflows/test.ymlNotes
gh-pagesconcurrency group fromjsdoc.ymlis preserved at the workflow top level (matching the reference).lintretains its originalpermissions: write-all;jsdocandtestgetcontents: read.🤖 Generated with Claude Code