Skip to content

Add unit tests and PHPStan to CI pipeline#2775

Open
namespacebrian wants to merge 1 commit intophp85from
php85-ci-integration
Open

Add unit tests and PHPStan to CI pipeline#2775
namespacebrian wants to merge 1 commit intophp85from
php85-ci-integration

Conversation

@namespacebrian
Copy link
Copy Markdown
Contributor

Summary

  • Consolidates test:quick into test:unit (runs PHPUnit + PHPStan together)
  • Adds "Unit Tests & PHPStan" step to checkout_build job in CI workflow
  • Unit tests now run before phar build, catching type errors early

This ensures static analysis and unit tests run in CI before the longer functional tests, providing faster feedback on type errors discovered during the PHP 8.5 modernization work.

Test plan

  • CI runs unit tests and PHPStan in checkout_build job
  • Functional tests still run after unit tests pass
  • composer test:unit works locally (runs both PHPUnit and PHPStan)

Dependencies

This PR is based on #2770 and should be rebased/merged after that PR is merged.

- Consolidate test:quick into test:unit (runs PHPUnit + PHPStan)
- Add "Unit Tests & PHPStan" step to checkout_build job in CI
- Unit tests run before phar build, catching type errors early

This ensures static analysis and unit tests run in CI before the
longer functional tests, providing faster feedback on type errors.
@namespacebrian namespacebrian requested a review from a team as a code owner February 2, 2026 20:49
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