1- name : run- tests
1+ name : tests
22
33on :
4+ push :
5+ branches :
6+ - master
7+ - ' *.x'
48 pull_request :
9+ schedule :
10+ - cron : ' 0 0 * * *'
511
612jobs :
7- run-tests :
8- runs-on : ubuntu-latest
13+ tests :
14+ runs-on : ubuntu-22.04
15+
916 strategy :
10- fail-fast : false
17+ fail-fast : true
1118 matrix :
12- php : [8.1, 8.2, 8.3]
13- laravel : [10.*, 11.*]
14- include :
15- - laravel : 11.*
16- testbench : 9.*
17- - laravel : 10.*
18- testbench : 8.*
19- exclude :
20- - laravel : 11.*
21- php : 8.1
22-
23- name : PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }}
19+ php : [8.1, 8.2, 8.3, 8.4]
2420
25- steps :
26- - name : Update apt
27- run : sudo apt-get update --fix-missing
21+ name : PHP ${{ matrix.php }}
2822
23+ steps :
2924 - name : Checkout code
30- uses : actions/checkout@v2
25+ uses : actions/checkout@v4
3126
3227 - name : Setup PHP
3328 uses : shivammathur/setup-php@v2
3429 with :
3530 php-version : ${{ matrix.php }}
31+ extensions : dom, curl, libxml, mbstring, zip, bcmath
32+ ini-values : error_reporting=E_ALL
33+ tools : composer:v2
3634 coverage : none
3735
38- - name : Setup Problem Matches
36+ - name : Install dependencies (Laravel 10)
37+ run : |
38+ composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^10"
39+ if : matrix.php >= 8.1 && matrix.php < 8.4
40+
41+ - name : Execute tests (Laravel 10)
42+ run : vendor/bin/phpunit --display-deprecations --fail-on-deprecation
43+ if : matrix.php >= 8.1 && matrix.php < 8.4
44+
45+ - name : Install dependencies (Laravel 11)
3946 run : |
40- echo "::add-matcher::${{ runner.tool_cache }}/php.json "
41- echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
47+ composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^11 "
48+ if : matrix.php >= 8.2 && matrix.php <= 8.4
4249
43- - name : Install dependencies
50+ - name : Execute tests (Laravel 11)
51+ run : vendor/bin/phpunit --display-deprecations --fail-on-deprecation
52+ if : matrix.php >= 8.2 && matrix.php <= 8.4
53+
54+ - name : Install dependencies (Laravel 12)
4455 run : |
45- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46- composer update --prefer-dist --no-interaction --no-suggest
47- - name : Execute tests
48- run : vendor/bin/pest
56+ composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^12"
57+ if : matrix.php >= 8.2 && matrix.php <= 8.4
58+
59+ - name : Execute tests (Laravel 12)
60+ run : vendor/bin/phpunit --display-deprecations --fail-on-deprecation
61+ if : matrix.php >= 8.2 && matrix.php <= 8.4
0 commit comments