This repository was archived by the owner on Aug 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+ jobs :
3+ run :
4+ runs-on : ubuntu-latest
5+ strategy :
6+ matrix :
7+ php : ['7.4']
8+ laravel : [7.*]
9+ dependency-version : [prefer-stable]
10+ include :
11+ - laravel : 7.*
12+ testbench : 5.*
13+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v1
17+
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v1
20+ with :
21+ php-version : ${{ matrix.php }}
22+ extensions : mbstring, intl, json, zip
23+ coverage : xdebug
24+
25+ - name : Get Composer Cache Directory
26+ id : composer-cache
27+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
28+
29+ - name : Cache dependencies
30+ uses : actions/cache@v1
31+ with :
32+ path : ~/.composer/cache/files
33+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+ - name : Install dependencies
36+ run : |
37+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
38+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
39+ env :
40+ APP_ENV : testing
41+
42+ - name : Run tests
43+ run : ./vendor/bin/phpunit
44+ env :
45+ APP_ENV : testing
46+
You can’t perform that action at this time.
0 commit comments