8000 Update PHP version for coverage · phpmd/phpmd@9ba3709 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ba3709

Browse files
committed
Update PHP version for coverage
1 parent 7708a7d commit 9ba3709

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
php: [8.2]
20+
php: [8.3]
2121
dependency-version: [prefer-stable]
2222

23-
name: P${{ matrix.php }}
23+
name: PHP ${{ matrix.php }}
2424

2525
steps:
2626
- name: Checkout code
@@ -43,8 +43,10 @@ jobs:
4343
coverage-${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.dependency-version }}
4444
4545
- name: Install dependencies
46+
if: steps.composer-cache.outputs.cache-hit != 'true'
4647
run: |
4748
composer require phpunit/phpunit:^5.7.27 --no-update --no-interaction --dev
49+
composer require symfony/config:^6.4 --no-update --no-interaction --dev
4850
composer update --prefer-dist --no-progress --${{ matrix.dependency-version }} --ignore-platform-req=php
4951
5052
- name: Fix PHP compatibility

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
20+
php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
2121
dependency-version: [prefer-lowest, prefer-stable]
2222
exclude:
2323
- dependency-version: prefer-lowest
@@ -53,6 +53,10 @@ jobs:
5353
if: matrix.php >= 7.2
5454
run: composer require phpunit/phpunit:^5.7.27 --no-update --no-interaction --dev
5555

56+
- name: Downgrade Symfony
57+
if: matrix.php >= 8.0 && matrix.dependency-version == 'prefer-stable'
58+
run: composer require symfony/config:^6.4 --no-update --no-interaction --dev
59+
5660
- name: Install dependencies
5761
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress ${{ matrix.php >= 8 && '--ignore-platform-req=php' || '' }}
5862

0 commit comments

Comments
 (0)
0