Skip to content

Conversation

@cmuench
Copy link
Member

@cmuench cmuench commented May 22, 2025

I've standardized the PHP and Composer versions used for building and testing the PHAR within the magento_platform_tests.yml workflow.

Changes:

These changes aim to resolve failures in the Magento Platform Tests GitHub Action by ensuring the PHAR is built and tested in an environment consistent with the rest of the matrix job's setup, reducing potential incompatibilities.

Magerun pull-request check-list:

  • Pull request against develop branch (if not, just close and create a new one against it)
  • README.md reflects changes (if any)
  • phar fuctional test (in tests/phar-test.sh)

Changes proposed in this pull request:

  • I modified the "Setup PHP for phar build" step in .github/workflows/magento_platform_tests.yml to use matrix.php-version and matrix.composer-version instead of hardcoded PHP 8.2 and Composer v2. This ensures consistency with the PHP/Composer versions used for Magento installation and initial PHPUnit tests within each matrix job.
  • The build.sh script was previously updated to remove redundant Composer download logic, relying on setup-php to provide Composer. This change is implicitly included.

I've standardized the PHP and Composer versions used for building and
testing the PHAR within the magento_platform_tests.yml workflow.

Changes:
- I modified the "Setup PHP for phar build" step in
  .github/workflows/magento_platform_tests.yml to use
  `matrix.php-version` and `matrix.composer-version` instead of
  hardcoded PHP 8.2 and Composer v2. This ensures consistency
  with the PHP/Composer versions used for Magento installation
  and initial PHPUnit tests within each matrix job.
- The `build.sh` script was previously updated to remove redundant
  Composer download logic, relying on `setup-php` to provide Composer.
  This change is implicitly included.

These changes aim to resolve failures in the Magento Platform Tests
GitHub Action by ensuring the PHAR is built and tested in an
environment consistent with the rest of the matrix job's setup,
reducing potential incompatibilities.
@cmuench cmuench merged commit aaffd9b into develop May 22, 2025
8 checks passed
@cmuench cmuench added this to the 9.0.0 milestone Jun 11, 2025
@cmuench cmuench deleted the fix/magento-platform-tests branch June 14, 2025 19:16
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