Skip to content

Refactor CI Workflows#1634

Merged
alganet merged 1 commit intoRespect:mainfrom
alganet:ci-action
Jan 28, 2026
Merged

Refactor CI Workflows#1634
alganet merged 1 commit intoRespect:mainfrom
alganet:ci-action

Conversation

@alganet
Copy link
Copy Markdown
Member

@alganet alganet commented Jan 28, 2026

  • Added a composite action for common setup tasks.
  • Shorter names that fit better GitHub runner displays.
  • Changed ci-perf to only run if src or tests change.
  • Removed redundant step names when they're obvious.

@alganet alganet force-pushed the ci-action branch 3 times, most recently from 2a9f36f to 406e57a Compare January 28, 2026 15:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.03%. Comparing base (00e7f2a) to head (762c3f7).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1634   +/-   ##
=========================================
  Coverage     98.03%   98.03%           
  Complexity      961      961           
=========================================
  Files           197      197           
  Lines          2234     2234           
=========================================
  Hits           2190     2190           
  Misses           44       44           

☔ View full report in Codecov by Sentry.
📢 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.

@alganet alganet force-pushed the ci-action branch 2 times, most recently from 9432742 to 5441d20 Compare January 28, 2026 16:04
@alganet alganet requested a review from Copilot January 28, 2026 16:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors CI workflows to improve maintainability and readability by consolidating common setup tasks into a reusable composite action and renaming workflows with shorter, more display-friendly names.

Changes:

  • Created a composite action (.github/actions/setup-action) to consolidate PHP, Python, and dependency installation steps
  • Renamed and reorganized workflows: continuous-integration-code.ymlci-code.yml, continuous-integration-docs.ymlci-docs.yml, and continuous-integration-perf.ymlci-perf.yml
  • Updated path filters in ci-perf workflow to run only when src, tests, or .github directories change
  • Removed redundant step names throughout workflows for cleaner display
  • Updated REUSE.toml to include the new .github/actions/ path pattern

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/actions/setup-action/action.yml New composite action that centralizes environment setup for PHP, Python, and dependencies
.github/workflows/ci-code.yml New workflow replacing continuous-integration-code.yml with shorter name and using the composite action
.github/workflows/ci-docs.yml New workflow replacing continuous-integration-docs.yml with shorter name and using the composite action
.github/workflows/ci-perf.yml Renamed from continuous-integration-perf.yml, updated path filters, uses composite action, removed matrix strategy
.github/workflows/reuse.yml Refactored to use the new composite action, removed redundant step names
.github/workflows/release.yml Removed redundant "Checkout" step name
continuous-integration-code.yml Deleted (replaced by ci-code.yml)
continuous-integration-docs.yml Deleted (replaced by ci-docs.yml)
REUSE.toml Added .github/actions/**.yml to path patterns for license compliance
Comments suppressed due to low confidence (1)

.github/workflows/ci-perf.yml:13

  • The path filtering logic is inverted between push and pull_request events. According to the PR description, ci-perf should "only run if src or tests change", but the current configuration does the opposite:
  • For push events: uses paths-ignore for 'src/' and 'tests/', meaning it runs when these paths DON'T change
  • For pull_request events: uses paths for 'src/' and 'tests/', meaning it runs when these paths DO change

Both events should use the same filtering approach. If the intention is to run only when src or tests change, both should use paths (not paths-ignore) with the same path patterns.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/setup-action/action.yml Outdated
Comment thread .github/actions/setup-action/action.yml Outdated
@alganet alganet marked this pull request as ready for review January 28, 2026 16:41
@alganet alganet requested a review from henriquemoody January 28, 2026 16:41
 - Added a composite action for common setup tasks.
 - Shorter names that fit better GitHub runner displays.
 - Changed ci-perf to only run if src or tests change.
 - Removed redundant step names when they're obvious.
@alganet alganet merged commit b69beb1 into Respect:main Jan 28, 2026
8 checks passed
@alganet alganet deleted the ci-action branch January 28, 2026 17:31
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.

3 participants