ci: add path filtering to static-code-analysis workflow#59319
Merged
nickvergessen merged 1 commit intomasterfrom Mar 31, 2026
Merged
ci: add path filtering to static-code-analysis workflow#59319nickvergessen merged 1 commit intomasterfrom
nickvergessen merged 1 commit intomasterfrom
Conversation
Signed-off-by: Josh <josh.t.richards@gmail.com>
nickvergessen
approved these changes
Mar 30, 2026
susnux
approved these changes
Mar 31, 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.
Summary
All 5 Psalm jobs in the
static-code-analysisworkflow currently run unconditionally on every pull request, regardless of which files changed. This means JS-only, docs-only, or other non-PHP changes still trigger 5 full Psalm runs (each doingcomposer install+full static analysis).This adds a changes job using
dorny/paths-filter(matching the pattern already used byphpunit-*,lint-php,autocheckers, etc.) and gates all Psalm jobs behind it. A summary job is also added to ensure branch protection rules work correctly when jobs are skipped.No changes to the actual Psalm analysis configuration or behavior -- only when it runs.
Benefit
With 5 jobs running in parallel, the wall-clock time is roughly one job's duration (~20–35 min), and the compute time is 5× that: ~100–175 minutes per workflow run. And less runners occupied.
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)