@@ -42,24 +42,21 @@ jobs:
4242 test :
4343 name : PHP${{ matrix.php }}${{ matrix.extensions-suffix }}, ${{ matrix.os }}, ${{ matrix.dependencies }} deps
4444 runs-on : ${{ matrix.os }}
45- timeout-minutes : ${{ matrix.timeout-minutes }}
45+ timeout-minutes : ${{ inputs.test-timeout }}
4646 env :
4747 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4848 strategy :
4949 fail-fast : ${{ inputs.fail-fast }}
5050 matrix :
51- php : [ 8.1, 8.2, 8.3 ]
52- os : [ ubuntu-latest, windows-latest ]
51+ php : [ 8.1, 8.2, 8.3, 8.4 ]
52+ os : [ ubuntu-latest ]
5353 extensions-suffix : [ '', ', protobuf' ]
5454 dependencies : [ lowest , highest ]
55- timeout-minutes : [ '${{ inputs.test-timeout }}' ]
56- exclude :
57- - os : windows-latest
58- php : 8.2
55+ include :
5956 - os : windows-latest
6057 extensions-suffix : ' , protobuf'
61- - os : windows-latest
62- php : 8.3
58+ php : 8.1
59+ dependencies : highest
6360 steps :
6461 - name : Set Git To Use LF
6562 run : |
8279 - name : Validate composer.json and composer.lock
8380 run : composer validate --strict
8481
82+ - name : Download CPX (PHP 8.4)
83+ if : inputs.download-binaries == true && matrix.php == '8.4'
84+ run : composer global require cpx/cpx
85+
8586 - name : Get Composer Cache Directory
8687 id : composer-cache
8788 run : |
@@ -96,23 +97,37 @@ jobs:
9697 php-${{ matrix.php }}-${{ matrix.os }}-composer-
9798
9899 - name : Install lowest dependencies from composer.json
99- if : matrix.dependencies == 'lowest'
100+ if : matrix.dependencies == 'lowest' && matrix.php != '8.4'
100101 run : composer update --no-interaction --no-progress --prefer-lowest
101102
103+ - name : Install lowest dependencies from composer.json ignoring ext-php constraint (PHP 8.4)
104+ if : matrix.dependencies == 'lowest' && matrix.php == '8.4'
105+ run : composer update --no-interaction --no-progress --prefer-lowest --ignore-platform-req php
106+
107+
102108 - name : Validate lowest dependencies
103- if : matrix.dependencies == 'lowest'
109+ if : matrix.dependencies == 'lowest' && matrix.php == '8.1'
104110 env :
105111 COMPOSER_POOL_OPTIMIZER : 0
106112 run : vendor/bin/validate-prefer-lowest
107113
114+
108115 - name : Install highest dependencies from composer.json
109- if : matrix.dependencies == 'highest'
116+ if : matrix.dependencies == 'highest' && matrix.php != '8.4'
110117 run : composer update --no-interaction --no-progress
111118
112- - name : Download RoadRunner
113- if : inputs.download-binaries == true
114- run : |
115- vendor/bin/dload get --no-interaction -vv
119+ - name : Install highest dependencies from composer.json ignoring ext-php constraint (PHP 8.4)
120+ if : matrix.dependencies == 'highest' && matrix.php == '8.4'
121+ run : composer update --no-interaction --no-progress --ignore-platform-req php
122+
123+
124+ - name : Download binaries
125+ if : inputs.download-binaries == true && matrix.php != '8.4'
126+ run : composer get:binaries
127+
128+ - name : Download binaries (PHP 8.4)
129+ if : inputs.download-binaries == true && matrix.php == '8.4'
130+ run : cpx internal/dload get --no-interaction
116131
117132 - name : Run tests
118133 run : ${{ inputs.test-command }}
0 commit comments