@@ -17,19 +17,15 @@ jobs:
1717 tests :
1818 runs-on : ubuntu-latest
1919 strategy :
20- fail-fast : true
20+ fail-fast : false
2121 matrix :
2222 php : [8.2, 8.3, 8.4]
2323 laravel : [11.*, 12.*]
24- stability : [prefer-lowest, prefer-stable]
2524 exclude :
26- # Skip incompatible PHP versions and Laravel versions
2725 - php : 8.2
2826 laravel : 12.*
29- - php : 8.4
30- stability : prefer-lowest
3127
32- name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
28+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
3329
3430 steps :
3531 - name : Checkout code
@@ -50,27 +46,24 @@ jobs:
5046 echo "::add-matcher::/opt/hostedtoolcache/phpunit.json"
5147 shell : /usr/bin/bash -e {0}
5248
53- - name : Cache dependencies
54- uses : actions/cache@v3
49+ - name : Cache Composer dependencies
50+ id : composer-cache
51+ uses : actions/cache@v4
5552 with :
56- path : /home/runner/.cache/composer/files
57- key : ${{ runner.os }}-composer- ${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }}-${{ matrix.stability }}
53+ path : vendor
54+ key : ${{ runner.os }}-php ${{ matrix.php }}-laravel ${{ matrix.laravel }}-${{ hashFiles('**/composer.lock') }}
5855 restore-keys : |
59- ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }}-
60- ${{ runner.os }}-composer-${{ matrix.php }}-
61- enableCrossOsArchive : false
62- fail-on-cache-miss : false
63- lookup-only : false
56+ ${{ runner.os }}-php${{ matrix.php }}-laravel${{ matrix.laravel }}-
57+ ${{ runner.os }}-php${{ matrix.php }}-
58+ ${{ runner.os }}-
6459
6560 - name : Install dependencies
66- run : |
67- composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
68- composer update --${{ matrix.stability }} --prefer-dist --no-interaction
61+ run : composer install --prefer-dist --no-interaction --no-progress --no-suggest
6962
7063 - name : Run PHPUnit tests
7164 run : vendor/bin/phpunit --coverage-text
7265
73- - name : Run PHP Static Analysis
66+ - name : Run PHPStan
7467 run : |
7568 if [ -f vendor/bin/phpstan ]; then
7669 vendor/bin/phpstan analyse
0 commit comments