88 strategy :
99 fail-fast : true
1010 matrix :
11- php : [8.4, 8.3, 8.2]
12- laravel : [11 .*, 12 .*]
11+ php : [8.5, 8. 4, 8.3, 8.2]
12+ laravel : [12 .*, 11 .*]
1313 stability : [prefer-lowest, prefer-stable]
14+ os : [ubuntu-latest]
1415 include :
1516 - laravel : 12.*
1617 testbench : 10.*
1920 exclude :
2021 - php : 8.4
2122 stability : prefer-lowest
23+ - php : 8.5
24+ stability : prefer-lowest
2225
23- name : P ${{ matrix.php }} - L ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
26+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
2427
2528 steps :
2629 - name : Checkout code
@@ -30,12 +33,24 @@ jobs:
3033 uses : shivammathur/setup-php@v2
3134 with :
3235 php-version : ${{ matrix.php }}
33- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
36+ extensions : >
37+ dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite,
38+ bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
3439 coverage : xdebug
3540
41+ - name : Cache Composer dependencies
42+ uses : actions/cache@v4
43+ with :
44+ path : vendor
45+ key : composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('composer.lock') }}
46+ restore-keys : composer-
47+
3648 - name : Install dependencies
3749 run : |
38- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
50+ composer require \
51+ "laravel/framework:${{ matrix.laravel }}" \
52+ "orchestra/testbench:${{ matrix.testbench }}" \
53+ --no-interaction --no-update
3954 composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4055
4156 - name : Execute tests
0 commit comments