@@ -52,23 +52,26 @@ jobs:
5252 uses : actions/cache@v4
5353 with :
5454 path : vendor
55- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
55+ key : ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.filament }}-${{ matrix.testbench }}-${{ matrix.livewire }}-${{ hashFiles('**/composer.lock') }}
5656 restore-keys : |
57+ ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.filament }}-${{ matrix.testbench }}-${{ matrix.livewire }}-
5758 ${{ runner.os }}-composer-
5859
5960 - name : Setup PHP
6061 uses : shivammathur/setup-php@v2
6162 with :
6263 php-version : ${{ matrix.php }}
63- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
64- coverage : none
64+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, pcov
65+ coverage : pcov
6566
6667 - name : Setup problem matchers
6768 run : |
6869 echo "::add-matcher::${{ runner.tool_cache }}/php.json"
6970 echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
7071
7172 - name : Install dependencies
73+ env :
74+ XDEBUG_MODE : off
7275 run : |
7376 composer require \
7477 "laravel/framework:${{ matrix.laravel }}" \
7881 --no-interaction --no-update --no-progress --ansi
7982 composer update --prefer-stable --prefer-dist --no-interaction --no-progress --ansi
8083
81- - name : Execute tests
82- run : vendor/bin/pest
84+ - name : Prepare coverage directory
85+ run : mkdir -p build/logs
86+
87+ - name : Execute tests with coverage
88+ run : vendor/bin/pest --coverage --coverage-clover build/logs/clover.xml
89+
90+ - name : Upload coverage artifact
91+ uses : actions/upload-artifact@v4
92+ with :
93+ name : coverage-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.filament }}
94+ path : build/logs/clover.xml
95+ if-no-files-found : error
0 commit comments