Skip to content

CI: modernize GitHub Actions (PHP 8.2–8.5) - #23

Merged
slashrsm merged 4 commits into
masterfrom
ci/phase0-modernize-actions
Jul 22, 2026
Merged

CI: modernize GitHub Actions (PHP 8.2–8.5)#23
slashrsm merged 4 commits into
masterfrom
ci/phase0-modernize-actions

Conversation

@slashrsm

Copy link
Copy Markdown
Contributor

Summary

Phase 0 housekeeping for green, maintainable CI.

  • Bump actions/checkout and actions/cache to v4
  • Matrix: PHP 8.2–8.5
  • Remove Scrutinizer/ocular upload
  • Enable sqlite3 extension for tests

Part of PortPHP org CI modernization (Phase 0).

Janez Urevc and others added 4 commits July 22, 2026 12:56
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.
@slashrsm
slashrsm merged commit d01c75f into master Jul 22, 2026
4 of 5 checks passed
@slashrsm
slashrsm deleted the ci/phase0-modernize-actions branch July 22, 2026 11:01
@slashrsm
slashrsm requested a review from Copilot July 22, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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@v4 and actions/cache@v4, and set explicit permissions.
  • Switched CI matrix to PHP 8.2–8.5, disabled coverage upload, and enabled the sqlite3 extension.
  • Added doctrine/annotations to require-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' ]
@slashrsm slashrsm mentioned this pull request Jul 22, 2026
2 tasks
slashrsm added a commit that referenced this pull request Jul 22, 2026
Raise php to ^8.2, Composer download cache, sqlite3+mongodb, drop ext-* ignore, lock-aware install.
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.

2 participants