diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e75f3c..a4a9920 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,13 +14,13 @@ jobs: matrix: php: [8.2, 8.3, 8.4] laravel: [10.*, 11.*] - statamic: [^5.0] + stability: [prefer-lowest, prefer-stable] os: [ubuntu-latest] exclude: - php: 8.4 laravel: 10.* - name: ${{ matrix.php }} - ${{ matrix.statamic }} - ${{ matrix.laravel }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code @@ -34,8 +34,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "statamic/cms:${{ matrix.statamic }}" --no-interaction --no-update - composer install --no-interaction + composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update + composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest - name: Run PHPUnit - run: vendor/bin/phpunit --display-deprecation + run: vendor/bin/phpunit --display-deprecation ${{ matrix.stability == 'prefer-stable' && '--fail-on-deprecation' || '' }}