Skip to content

Commit 408011b

Browse files
authored
Merge pull request #39 from imponeer/codex/use-php-version-action
Use php-version-action to derive CI PHP matrix
2 parents cecba0d + 31243c1 commit 408011b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/on_pull_request.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@ on:
66
- main
77

88
jobs:
9+
php-versions:
10+
name: Lookup PHP versions
11+
runs-on: ubuntu-latest
12+
outputs:
13+
matrix: ${{ steps.versions.outputs.matrix }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6
17+
- name: Determine supported PHP versions
18+
id: versions
19+
uses: antfroger/php-version-action@v1
20+
921
tests:
22+
needs: php-versions
1023
runs-on: ubuntu-latest
1124
continue-on-error: false
1225
strategy:
1326
max-parallel: 3
1427
matrix:
15-
php:
16-
- 8.3
17-
- 8.4
28+
php: ${{ fromJSON(needs.php-versions.outputs.matrix) }}
1829
composer:
1930
- 2
2031
name: Test - php:${{ matrix.php }}; composer:${{ matrix.composer }}

0 commit comments

Comments
 (0)