CI: modernize GitHub Actions (PHP 8.2–8.5) - #23
Merged
Conversation
Phase 0 housekeeping: - Upgrade actions/checkout and actions/cache to v4 - Test on PHP 8.2–8.5 - Remove Scrutinizer coverage upload - Fail the suite on test errors (no continue-on-error)
Needed for Doctrine ORM Setup::createAnnotationMetadataConfiguration on modern ORM.
Setup::createAnnotationMetadataConfiguration defaults to simple reader, which was removed in annotations 2.x.
Annotations 2 removed SimpleAnnotationReader; fixtures use short @entity names.
There was a problem hiding this comment.
Pull request overview
Modernizes the project’s CI workflow to align with newer GitHub Actions defaults and a newer PHP baseline, and updates dev dependencies to support the updated test environment.
Changes:
- Updated GitHub Actions workflow to use
actions/checkout@v4andactions/cache@v4, and set explicitpermissions. - Switched CI matrix to PHP 8.2–8.5, disabled coverage upload, and enabled the
sqlite3extension. - Added
doctrine/annotationstorequire-dev.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| composer.json | Adds a dev dependency (doctrine/annotations) alongside existing Doctrine test/dev requirements. |
| .github/workflows/test.yml | Modernizes CI actions, updates PHP matrix to 8.2–8.5, adjusts Composer validation/install, and removes coverage upload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
35
to
+39
| - name: Cache Composer packages | ||
| id: composer-cache | ||
| uses: actions/cache@v2 | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: vendor | ||
| key: ${{ runner.os }}-composer-${{ matrix.composer-prefer }}$-${{ hashFiles('**/composer.lock') }} | ||
| key: ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }} |
| coverage: ${{ matrix.coverage }} | ||
| coverage: none | ||
| tools: composer:v2 | ||
| extensions: sqlite3 |
Comment on lines
43
to
+44
| - name: Install dependencies | ||
| run: composer update --prefer-dist --no-progress --ignore-platform-req="ext-*" ${{ matrix.composer-prefer }} | ||
| run: composer update --prefer-dist --no-progress --ignore-platform-req="ext-*" |
Comment on lines
16
to
+17
| matrix: | ||
| php-versions: [ '7.4', '8.0', '8.1' ] | ||
| include: | ||
| - php-versions: '7.4' | ||
| coverage: pcov | ||
| composer-prefer: '--prefer-lowest --prefer-stable' | ||
| phpunit-flags: '--coverage-clover coverage.xml' | ||
| php-versions: [ '8.2', '8.3', '8.4', '8.5' ] |
2 tasks
slashrsm
added a commit
that referenced
this pull request
Jul 22, 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
Phase 0 housekeeping for green, maintainable CI.
actions/checkoutandactions/cacheto v4sqlite3extension for testsPart of PortPHP org CI modernization (Phase 0).