4444 # https://github.com/shivammathur/setup-php
4545 uses : shivammathur/setup-php@v2
4646 with :
47- php-version : ' 8.0'
47+ # Should be the higest supported version, so we can use the newest tools
48+ php-version : ' 8.2'
4849 tools : composer:v2
49- extensions : mbstring, xml
50+ extensions : ctype, date, dom, hash, intl, json, mbstring, mysql, openssl, pcre, pdo, pdo_sqlite, spl , xml
5051
5152 - name : Setup problem matchers for PHP
5253 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -105,8 +106,9 @@ jobs:
105106 # https://github.com/shivammathur/setup-php
106107 uses : shivammathur/setup-php@v2
107108 with :
109+ # Should be the lowest supported version
108110 php-version : ' 8.0'
109- extensions : mbstring, xml
111+ extensions : ctype, date, dom, hash, intl, json, mbstring, mysql, openssl, pcre, pdo, pdo_sqlite, spl , xml
110112 tools : composer:v2
111113 coverage : none
112114
@@ -153,7 +155,7 @@ jobs:
153155 uses : shivammathur/setup-php@v2
154156 with :
155157 php-version : ${{ matrix.php-versions }}
156- extensions : intl, mbstring, mysql, pdo, pdo_sqlite, xml
158+ extensions : ctype, date, dom, hash, intl, json, mbstring, mysql, openssl, pcre, pdo, pdo_sqlite, spl , xml
157159 tools : composer:v2
158160 ini-values : error_reporting=E_ALL
159161 coverage : xdebug
@@ -185,19 +187,19 @@ jobs:
185187 run : composer install --no-progress --prefer-dist --optimize-autoloader
186188
187189 - name : Run unit tests with coverage
188- if : ${{ matrix.php-versions == '8.1 ' }}
190+ if : ${{ matrix.php-versions == '8.2 ' }}
189191 run : vendor/bin/phpunit
190192
191193 - name : Run unit tests (no coverage)
192- if : ${{ matrix.php-versions != '8.1 ' }}
194+ if : ${{ matrix.php-versions != '8.2 ' }}
193195 run : vendor/bin/phpunit --no-coverage
194196
195197 - name : Save coverage data
196- if : ${{ matrix.php-versions == '8.1 ' }}
198+ if : ${{ matrix.php-versions == '8.2 ' }}
197199 uses : actions/upload-artifact@v3
198200 with :
199201 name : coverage-data
200- path : ${{ github.workspace }}/build
202+ path : ${{ github.workspace }}
201203
202204 unit-tests-windows :
203205 name : " Syntax and unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
@@ -215,7 +217,7 @@ jobs:
215217 uses : shivammathur/setup-php@v2
216218 with :
217219 php-version : ${{ matrix.php-versions }}
218- extensions : intl, mbstring, mysql, pdo, pdo_sqlite, xml
220+ extensions : ctype, dom, date, hash, intl, json, mbstring, mysql, openssl, pcre, pdo, pdo_sqlite, spl , xml
219221 tools : composer:v2
220222 ini-values : error_reporting=E_ALL
221223 coverage : none
@@ -257,7 +259,7 @@ jobs:
257259 - uses : actions/download-artifact@v3
258260 with :
259261 name : coverage-data
260- path : ${{ github.workspace }}/build
262+ path : ${{ github.workspace }}
261263
262264 - name : Codecov
263265 uses : codecov/codecov-action@v3
0 commit comments