Skip to content

Address Copilot CI feedback from #23 - #24

Closed
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback
Closed

Address Copilot CI feedback from #23#24
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback

Conversation

@slashrsm

@slashrsm slashrsm commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #23 addressing Copilot review comments.

  • Raise php requirement to ^8.2 to match the CI matrix
  • Cache Composer’s download cache instead of vendor/
  • Enable sqlite3 and mongodb extensions
  • Drop broad --ignore-platform-req="ext-*"
  • Validate lock when present; composer install when lock present
  • Hash lock in cache key; Composer --no-interaction

Test plan

  • CI matrix PHP 8.2–8.5 green
  • Copilot review on latest commit (no blocking comments)

- Raise php requirement to >=8.2 to match tested matrix
- Cache Composer download cache instead of vendor/
- Enable sqlite3 and mongodb extensions
- Drop broad --ignore-platform-req=\"ext-*\"
- Validate lock when present; hash lock in cache key

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

This PR updates project/CI requirements and Composer caching to align with the PHP 8.2–8.5 CI matrix and improve dependency install performance/reliability when using composer update without a lockfile.

Changes:

  • Bump the Composer PHP requirement to >=8.2.
  • Update CI to cache Composer’s download cache (instead of vendor/) and include composer.lock in the cache key when present.
  • Adjust CI to enable sqlite3 and mongodb extensions and stop ignoring all ext-* platform requirements.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
composer.json Raises the minimum PHP version to match the CI matrix baseline.
.github/workflows/test.yml Improves Composer validation and caching; enables required PHP extensions and removes broad platform-req ignores.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use ^8.2 instead of >=8.2 so Composer does not accept PHP 9+ by default
- Prefer composer install when a lockfile is present

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

- Pass --no-interaction on composer validate/install/update
- Rename validate step to reflect lockfile handling

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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.
@slashrsm

Copy link
Copy Markdown
Contributor Author

Merged to master via git squash (gh OAuth lacks workflow scope for PR merge API).

@slashrsm slashrsm closed this Jul 22, 2026
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