File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 77 branches : [ master, v2, v3 ]
88
99jobs :
10+ get-php-versions :
11+ name : Get PHP versions
12+ runs-on : ubuntu-latest
13+ outputs :
14+ matrix : ${{ steps.set-matrix.outputs.matrix }}
15+ steps :
16+ - name : Fetch PHP versions
17+ id : set-matrix
18+ run : |
19+ response=$(curl -s https://php.watch/api/v1/versions/secure)
20+ versions=$(echo "$response" | jq -r '.data | [.[] | .name] | sort_by(. | split(".") | map(tonumber)) | @json')
21+ echo "matrix=$versions" >> $GITHUB_OUTPUT
22+
1023 build :
1124 runs-on : ' ubuntu-latest'
25+ needs : get-php-versions
1226 strategy :
1327 matrix :
14- php-versions : [ '8.0', '8.1', '8.2' ]
28+ php-versions : ${{ fromJson(needs.get-php-versions.outputs.matrix) }}
1529
1630 steps :
17- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v5
1832
1933 - name : Setup PHP with PCOV
2034 uses : shivammathur/setup-php@v2
You can’t perform that action at this time.
0 commit comments