Skip to content

Commit a4fbc7f

Browse files
Update dependencies in composer.lock and enhance CI configuration
- Updated various package versions in composer.lock, including justinrainbow/json-schema, league/uri, and symfony components to their latest versions. - Modified CI workflow to include PHP versions 8.1, 8.2, 8.3, and 8.4, and added support for PHPUnit versions 10, 11, and 12. - Added `CoversClass` attributes to OpenAPISchemaValidatorTest and OpenAPISymfonySchemaValidatorTest for better test coverage reporting.
1 parent 6b7e0db commit a4fbc7f

File tree

4 files changed

+463
-455
lines changed

4 files changed

+463
-455
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
php-version: ['8.3', '8.4']
13+
php-version: ['8.1', '8.2', '8.3', '8.4']
14+
phpunit-version: ['10', '11', '12']
1415

1516
steps:
1617
- uses: actions/checkout@v4
@@ -26,22 +27,20 @@ jobs:
2627
coverage: pcov
2728

2829
- name: Composer install
29-
run: |
30-
if [[ ${{ matrix.prefer-lowest == 'prefer-lowest' }} ]]; then
31-
composer update --prefer-stable
32-
else
33-
composer install
34-
fi
30+
run: composer install --no-interaction --prefer-dist
31+
32+
- name: Install PHPUnit ${{ matrix.phpunit-version }}
33+
run: composer require --dev phpunit/phpunit:^${{ matrix.phpunit-version }}.0 --no-interaction
3534

3635
- name: Run PHPUnit
3736
run: |
38-
if [[ ${{ matrix.php-version }} == '8.3' ]]; then
37+
if [[ ${{ matrix.php-version }} == '8.3' && ${{ matrix.phpunit-version }} == '11' ]]; then
3938
bin/phpunit --coverage-clover=coverage.xml
4039
else
4140
bin/phpunit
4241
fi
4342
- name: Code Coverage Report
44-
if: success() && matrix.php-version == '8.2'
43+
if: success() && matrix.php-version == '8.3' && matrix.phpunit-version == '11'
4544
uses: codecov/codecov-action@v4
4645

4746
code-analysis:
@@ -56,7 +55,7 @@ jobs:
5655
- name: Setup PHP
5756
uses: shivammathur/setup-php@v2
5857
with:
59-
php-version: ${{ matrix.php-version }}
58+
php-version: '8.4'
6059
extensions: json, fileinfo
6160
coverage: pcov
6261
tools: pecl

0 commit comments

Comments
 (0)