@@ -2,40 +2,54 @@ name: tests
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [ main ]
76 pull_request :
8- branches :
9- - main
7+ branches : [ main ]
108
119jobs :
1210 test :
13- runs-on : ubuntu-latest
14-
11+ runs-on : ${{ matrix.os }}
1512 strategy :
1613 fail-fast : true
14+ max-parallel : 1
1715 matrix :
18- php : ['8.4']
19- laravel : ['12.*']
16+ os : [ ubuntu-latest ]
17+ php : [ 8.3, 8.4, 8.5 ]
18+ laravel : [ 13.* ]
19+ stability : [ prefer-lowest, prefer-stable ]
2020
21- name : PHP ${{ matrix.php }} — Laravel ${{ matrix.laravel }}
21+ name : P ${{ matrix.php }} - L ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2222
2323 steps :
24- - name : Checkout
25- uses : actions/checkout@v4
24+ - name : Checkout code
25+ uses : actions/checkout@v6.0.2
2626
2727 - name : Setup PHP
28- uses : shivammathur/setup-php@v2
28+ uses : shivammathur/setup-php@2.37.0
2929 with :
3030 php-version : ${{ matrix.php }}
31- extensions : dom, curl, libxml, mbstring, zip, sqlite3, pdo_sqlite
32- tools : composer:v2
31+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
3332 coverage : none
3433
35- - name : Install Dependencies
34+ - name : Setup problem matchers
35+ run : |
36+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38+
39+ - name : Install dependencies
3640 run : |
3741 composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
38- composer update --prefer-dist --no-interaction
42+ composer update --${{ matrix.stability }} -- prefer-dist --no-interaction
3943
40- - name : Run Tests
41- run : composer test
44+ - name : Prepare PHPUnit config
45+ run : cp phpunit.xml.dist phpunit.xml
46+
47+ - name : Run tests
48+ run : vendor/bin/pest --no-coverage
49+
50+ - name : Store log artifacts
51+ if : failure()
52+ uses : actions/upload-artifact@v4
53+ with :
54+ name : Store report artifacts
55+ path : ./vendor/orchestra/testbench-core/laravel/storage/logs
0 commit comments