3030 access_token : ${{ github.token }}
3131
3232 php_syntax_errors :
33- name : 1️⃣ PHP - Syntax errors
33+ name : 1️⃣ PHP 8.1 - Syntax errors
3434 runs-on : ubuntu-latest
3535 needs :
3636 - kill_previous
@@ -50,15 +50,15 @@ jobs:
5050 run : vendor/bin/parallel-lint --exclude .git --exclude vendor .
5151
5252 code_style_errors :
53- name : 2️⃣ PHP - Code Style errors
53+ name : 2️⃣ PHP 8.1 - Code Style errors
5454 runs-on : ubuntu-latest
5555 needs :
5656 - php_syntax_errors
5757 steps :
5858 - name : Set up PHP
5959 uses : shivammathur/setup-php@v2
6060 with :
61- php-version : latest
61+ php-version : 8.1
6262
6363 - name : Checkout code
6464 uses : actions/checkout@v3
9191 run : vendor/bin/phpstan analyze
9292
9393 tests :
94- name : 2️⃣ PHP ${{ matrix.php-version }} - ${{ matrix.sql-versions }}
94+ name : 2️⃣ PHP ${{ matrix.php-version }} - ${{ matrix.sql-versions }} -- ${{ matrix.test-suite }}
9595 needs :
9696 - php_syntax_errors
9797 runs-on : ubuntu-latest
@@ -104,6 +104,8 @@ jobs:
104104 - mariadb
105105 - postgresql
106106 - sqlite
107+ test-suite :
108+ - Feature
107109 # Service containers to run with `container-job`
108110 services :
109111 # Label used to access the service container
@@ -162,11 +164,11 @@ jobs:
162164 php artisan optimize
163165 php artisan migrate
164166
165- - name : Apply tests
166- run : XDEBUG_MODE=coverage vendor/bin/phpunit
167+ - name : Apply tests ${{ matrix.test-suite }}
168+ run : XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite ${{ matrix.test-suite }}
167169
168170 - name : Codecov
169- uses : codecov/codecov-action@v1
171+ uses : codecov/codecov-action@v3
170172
171173 - name : Make sure we can go backward
172174 run : php artisan migrate:rollback
@@ -180,7 +182,6 @@ jobs:
180182 matrix :
181183 php-version :
182184 - 8.1
183- - 8.2
184185 sql-versions :
185186 - mariadb
186187 - postgresql
0 commit comments