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 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