Skip to content

Commit 1a49980

Browse files
committed
Test with lowest dependencies in CI
1 parent bd6f1c3 commit 1a49980

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
runs-on: ${{ matrix.os }}
12-
name: PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }}
12+
name: PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }} ${{ matrix.mode }}
1313
strategy:
1414
matrix:
1515
os:
@@ -23,6 +23,10 @@ jobs:
2323
- '8.1'
2424
- '8.2'
2525
- '8.3'
26+
include:
27+
- php: '8.1'
28+
mongodb: '5.0'
29+
mode: 'low-deps'
2630

2731
steps:
2832
- uses: actions/checkout@v4
@@ -63,7 +67,7 @@ jobs:
6367
restore-keys: ${{ matrix.os }}-composer-
6468
- name: Install dependencies
6569
run: |
66-
composer install --no-interaction
70+
composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest --prefer-stable')
6771
- name: Run tests
6872
run: |
6973
./vendor/bin/phpunit --coverage-clover coverage.xml

0 commit comments

Comments
 (0)