From 1a499806f8971c8c2aabb5407b41c1e5205d963a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 2 Nov 2023 15:34:36 +0100 Subject: [PATCH] Test with lowest dependencies in CI --- .github/workflows/build-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 213ca5323..97b1e8a32 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -9,7 +9,7 @@ on: jobs: build: runs-on: ${{ matrix.os }} - name: PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }} + name: PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }} ${{ matrix.mode }} strategy: matrix: os: @@ -23,6 +23,10 @@ jobs: - '8.1' - '8.2' - '8.3' + include: + - php: '8.1' + mongodb: '5.0' + mode: 'low-deps' steps: - uses: actions/checkout@v4 @@ -63,7 +67,7 @@ jobs: restore-keys: ${{ matrix.os }}-composer- - name: Install dependencies run: | - composer install --no-interaction + composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest --prefer-stable') - name: Run tests run: | ./vendor/bin/phpunit --coverage-clover coverage.xml