Skip to content

docs: refine recommended paths defaults (composer.json, drop tests filter)#7

Merged
kojiromike merged 1 commit into
mainfrom
kojiromike/broaden-recommended-paths
May 12, 2026
Merged

docs: refine recommended paths defaults (composer.json, drop tests filter)#7
kojiromike merged 1 commit into
mainfrom
kojiromike/broaden-recommended-paths

Conversation

@kojiromike
Copy link
Copy Markdown
Contributor

Refines the recommended caller paths-filter patterns based on issues Copilot caught on oce-module-sinch-conversations#132:

  • PHP linter callers should include composer.json (and composer.lock for anything that runs composer install). The linters are invoked through composer scripts (composer phpstan, composer phpcs, composer php-lint, etc.), so a change to composer.json can change what runs. The earlier defaults missed this on phpcs and php-syntax-check.
  • tests.yml should NOT have a paths filter. Tests depend on too many runtime assets — Twig templates, SQL, config, fixtures — to safely enumerate. The runner cost of running tests on a docs-only PR is much smaller than the cost of not running them when an asset that affects them changed.

The reusables themselves are unchanged. This PR only updates header comments and the README; existing callers continue to work.

- composer.json should be on every PHP linter caller (the linters run
  through composer scripts, so composer.json changes can affect
  behavior); composer.lock too for anything that runs composer install
- tests.yml should NOT have a paths filter — tests depend on too many
  runtime assets to safely enumerate, and the cost of missing a test
  failure exceeds the cost of running tests on a docs-only PR

Caught by Copilot on oce-module-sinch-conversations#132.
@kojiromike kojiromike merged commit 3a560b3 into main May 12, 2026
1 check passed
@kojiromike kojiromike deleted the kojiromike/broaden-recommended-paths branch May 12, 2026 13:38
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