@@ -11,23 +11,56 @@ jobs:
1111
1212 runs-on : ubuntu-latest
1313
14+ strategy :
15+ fail-fast : true
16+ matrix :
17+ php : [7.3, 7.4]
18+
19+ name : PHP ${{ matrix.php }}
20+
1421 steps :
1522 - uses : actions/checkout@v2
23+
24+ - name : Cache dependencies
25+ uses : actions/cache@v1
26+ with :
27+ path : ~/.composer/cache/files
28+ key : dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+ - name : Setup PHP ${{ matrix.php }}
31+ uses : shivammathur/setup-php@v2
32+ with :
33+ php-version : ${{ matrix.php }}
34+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, pgsql, pdo_pgsql
35+ coverage : none
36+
1637 - uses : zhulik/redis-action@1.1.0
1738 with :
1839 redis version : ' 5'
19- number of databases : 100
40+ number of databases : 100
41+
2042 - uses : harmon758/postgresql-action@v1
2143 with :
2244 postgresql version : ' 11'
2345 postgresql db : ' testing'
2446 postgresql user : ' homestead'
2547 postgresql password : ' secret'
48+
49+ - name : Remove Nova on a pull request
50+ if : github.event_name == 'pull_request'
51+ run : composer remove laravel/nova --no-update --no-interaction --dev
52+
2653 - name : Copy .env
2754 run : php -r "file_exists('.env') || copy('.env.example', '.env');"
55+
2856 - name : Install Dependencies
2957 run : |
3058 composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
3159 composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
32- - name : Execute tests (Unit and Feature tests) via PHPUnit
33- run : vendor/bin/phpunit --configuration phpunit.xml.dist
60+
61+ - name : Execute Integration and Feature tests via PHPUnit
62+ run : vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Integration,Feature
63+
64+ - name : Execute Nova tests via PHPUnit
65+ if : github.event_name != 'pull_request'
66+ run : vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite Nova
0 commit comments