From 8e70eaae7d0b861f5ee622ec5590105702e8853f Mon Sep 17 00:00:00 2001 From: Alex Plekhanov Date: Sun, 7 Nov 2021 23:40:49 +0100 Subject: [PATCH 1/2] chore: updated tests workflow --- .github/workflows/tests.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c614fe3..79dd62f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,15 +7,15 @@ on: jobs: tests: runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: true matrix: php: [7.3, 7.4, 8.0, 8.1] - stability: [prefer-lowest, prefer-stable] - experimental: [false] + dependencies: + - lowest + - highest - name: Tests on PHP ${{ matrix.php }} - ${{ matrix.stability }} + name: Tests on PHP ${{ matrix.php }} - ${{ matrix.dependencies }} steps: - name: Checkout code @@ -28,8 +28,9 @@ jobs: tools: composer:v2 coverage: none - - name: Install dependencies - run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress + - uses: "ramsey/composer-install@v1" + with: + dependency-versions: "${{ matrix.dependencies }}" - name: Execute tests run: vendor/bin/phpunit --verbose From e083d12710120c8884484cc13012886407cbc2a7 Mon Sep 17 00:00:00 2001 From: Alex Plekhanov Date: Sun, 7 Nov 2021 23:47:10 +0100 Subject: [PATCH 2/2] chore: updated coverage workflow to use ramsey/composer-install --- .github/workflows/coverage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fb68798..2819371 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -20,8 +20,7 @@ jobs: tools: composer:v2 coverage: pcov - - name: Install dependencies - run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress + - uses: ramsey/composer-install@v1 - name: Execute tests run: vendor/bin/phpunit --verbose