Skip to content

Commit 15b7ceb

Browse files
committed
Test with highest and lowest dependency versions
1 parent ed62428 commit 15b7ceb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/default.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
php-versions: ['8.2', '8.3', '8.4']
17+
dependency-version: [lowest, highest]
1718

1819
steps:
1920
- uses: actions/checkout@v3
@@ -26,15 +27,15 @@ jobs:
2627

2728
- name: Cache Composer packages
2829
id: composer-cache
29-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3031
with:
3132
path: vendor
32-
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
33+
key: ${{ runner.os }}-${{ matrix.dependency-version }}-${{ hashFiles('**/composer.lock') }}
3334
restore-keys: |
3435
${{ runner.os }}-php-
3536
3637
- name: Install dependencies
37-
run: composer install --prefer-dist --no-progress
38+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3839

3940
- name: Check coding standard
4041
run: vendor/bin/phpcs -p

0 commit comments

Comments
 (0)