Skip to content

Clean up CI: scoped coverage, bump coveralls and php-cs-fixer#606

Merged
JayBizzle merged 2 commits into
masterfrom
ci/cleanup
May 11, 2026
Merged

Clean up CI: scoped coverage, bump coveralls and php-cs-fixer#606
JayBizzle merged 2 commits into
masterfrom
ci/cleanup

Conversation

@JayBizzle
Copy link
Copy Markdown
Owner

Summary

CI hygiene with no impact on detection behaviour:

  • Scoped coverage. xdebug was installed on every matrix job (PHP 7.1 → 8.4), but only one upload is actually needed. Now only the PHP 8.3 job installs xdebug and runs phpunit with --coverage-clover. Everything else runs with coverage: none, which is meaningfully faster.
  • Bump php-coveralls. ^1.0 is from 2018. Bumped to ^2.7.
  • Bump PHP CS Fixer. Image moved from 2.18.6 (unmaintained) to 3.26.0. Required the config rewrite below.
  • Config migration to v3. Renamed .php_cs.dist.php-cs-fixer.dist.php (v3 canonical name, so the --config flag is no longer needed), switched Config::create() to new Config(), and renamed the two rules that v3 changed (sortAlgorithmsort_algorithm, trailing_comma_in_multiline_arraytrailing_comma_in_multiline).
  • Other small bits. actions/checkout@v3@v4 in the cs-fixer workflow (aligns with test.yml); .gitignore updated to match v3's cache filename.

Test plan

  • Local vendor/bin/phpunit still green (19 tests, 2,274,786 assertions)
  • php -l .php-cs-fixer.dist.php clean
  • CI matrix passes on this branch
  • PHP CS Fixer workflow runs cleanly against the new config

🤖 Generated with Claude Code

JayBizzle and others added 2 commits May 11, 2026 19:14
- test.yml: only install xdebug and upload coverage on the PHP 8.3 job;
  every other matrix entry runs with `coverage: none`. Cuts wall time
  significantly without changing what we actually report.
- test.yml: bump php-coveralls/php-coveralls from ^1.0 (2018) to ^2.7.
- php-cs-fixer.yml: bump actions/checkout to v4 (aligned with test.yml)
  and oskarstark/php-cs-fixer-ga from 2.18.6 to 3.26.0.
- Rename .php_cs.dist to the v3-canonical .php-cs-fixer.dist.php and
  update the config to v3 syntax (`new PhpCsFixer\Config()`, rule
  renames). Drops the explicit --config flag since the new filename is
  auto-discovered.
- .gitignore: rename .php_cs.cache to .php-cs-fixer.cache to match v3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
php-coveralls/php-coveralls v2 renamed its bin from `coveralls` to
`php-coveralls`, so the previous invocation died with
`coveralls: command not found` on the PHP 8.3 coverage job.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JayBizzle JayBizzle merged commit a08a004 into master May 11, 2026
11 checks passed
@JayBizzle JayBizzle deleted the ci/cleanup branch May 11, 2026 18:26
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