Skip to content

Use dynamic PHP matrix from composer via php-version-action#46

Merged
MekDrop merged 2 commits intomainfrom
codex/use-php-version-action
Mar 30, 2026
Merged

Use dynamic PHP matrix from composer via php-version-action#46
MekDrop merged 2 commits intomainfrom
codex/use-php-version-action

Conversation

@Codex
Copy link
Copy Markdown
Contributor

@Codex Codex AI commented Mar 30, 2026

CI should derive PHP test versions from composer.json instead of hardcoding them.

  • PHP version discovery: Add php-versions job using antfroger/php-version-action@v1 to read the supported PHP range.
  • Dynamic test matrix: Feed the action’s matrix output into the tests job, replacing the fixed list of PHP versions.
jobs:
  php-versions:
    uses: antfroger/php-version-action@v1
    id: php-versions
    outputs:
      matrix: ${{ steps.php-versions.outputs.matrix }}

  tests:
    needs: php-versions
    strategy:
      matrix:
        php: ${{ fromJson(needs.php-versions.outputs.matrix) }}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/KxUk6R /usr/bin/composer install x de/node/bin/npx R) + 1) if (lsb_release (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/yPCbrs /usr/bin/composer install --no-interaction --no-progress --prefer-dist s ost:*;127.0.0.1;127.0.0.1:* git rev-�� --git-common-dir (http block)
  • https://api.github.com/repos/phpstan/phpstan/zipball/4a88c083c668b2c364a425c9b3171b2d9ea5d218
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/KxUk6R /usr/bin/composer install x de/node/bin/npx R) + 1) if (lsb_release (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/yPCbrs /usr/bin/composer install --no-interaction --no-progress --prefer-dist s ost:*;127.0.0.1;127.0.0.1:* git rev-�� --git-common-dir (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: MekDrop <342641+MekDrop@users.noreply.github.com>
@Codex Codex AI changed the title [WIP] Update CI tests to use versions matrix for PHP Use dynamic PHP matrix from composer via php-version-action Mar 30, 2026
@Codex Codex AI requested a review from MekDrop March 30, 2026 11:57
@MekDrop MekDrop marked this pull request as ready for review March 30, 2026 12:17
@MekDrop MekDrop merged commit 7ace556 into main Mar 30, 2026
5 checks passed
@MekDrop MekDrop deleted the codex/use-php-version-action branch March 30, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants