chore(ci): extract common deps setup#1136
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors GitHub Actions CI workflows by extracting the repeated Node/npm setup, npm cache restore, and npm ci install steps into a single local composite action, then updating workflows to use it (while preserving “no cache” behavior for release).
Changes:
- Added a new composite action (
setup-node-dependencies) to restore npm cache (optionally), run existingsetup-node-npm, and install dependencies vianpm ci. - Updated CI, docs, acceptance, and release workflows to replace duplicated cache/setup/install steps with the new composite action.
- Ensured release can explicitly disable npm caching via an action input.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/release.yml | Replaces repeated Node setup/install with the new composite action and disables cache for release. |
| .github/workflows/docs.yml | Switches to the composite action so docs export job no longer repeats cache/setup/install. |
| .github/workflows/ci.yml | Replaces repeated cache/setup/install steps across all CI jobs with the composite action. |
| .github/workflows/acceptance.yml | Uses the composite action for acceptance workflows to remove repeated cache/setup/install. |
| .github/actions/setup-node-dependencies/action.yml | Introduces the shared composite action that centralizes npm cache restore + Node/npm setup + npm ci. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f97d82d to
430e0a1
Compare
Coverage Report for CI Build 27007051749Coverage decreased (-0.005%) to 76.349%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
430e0a1 to
167235b
Compare
fenos
approved these changes
Jun 5, 2026
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.
What kind of change does this PR introduce?
refactor ci
What is the current behavior?
Node/npm deps setup is repeated.
What is the new behavior?
Extract it to a common composite action.
Additional context
Checkout must be kept separate since common is a local action.
Release keeps its no cache behavior.
Drop useless matrix in docs workflow.