File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 991 . How to install PHPStan
1010
1111``` bash
12- composer require phpstan/phpstan --dev
13- composer require nunomaduro /larastan:^2.0 --dev
12+ composer require phpstan/phpstan --dev
13+ composer require larastan /larastan --dev
1414```
1515
16162 . How to configure PHPStan
@@ -59,13 +59,18 @@ touch .github/workflows/main.yml
59596 . Create pipeline for main and develop
6060
6161``` bash
62- name: Build and Deploy
62+ name: Build, test and deploy
6363
6464on:
6565 push:
6666 branches: [ main ]
6767```
6868
69+ 8 . Add APP_KEY to env.example
70+ ``` bash
71+ APP_KEY=base64:d9a9xJWd3Zn6aBuApVpYTrtGZwyfIC+EErLA7zNh1vg=
72+ ```
73+
69747 . Create build job
7075``` bash
7176jobs:
@@ -80,14 +85,23 @@ jobs:
8085 with:
8186 php-version: 8.3
8287
88+ - name: Create database
89+ run: touch ./database/database.sqlite
90+
91+ - name: Copy .env
92+ run: cp .env.test .env
93+
8394 - name: Install app
8495 run: composer install
8596
86- - name: Test PHPUnit
87- run: ./vendor/bin/phpstan analyse
97+ - name: Run migrations
98+ run: php artisan migrate
99+
100+ - name: Test PHPStan
101+ run: ./vendor/bin/phpstan analyse
88102
89- - name: Test PHPUnit
90- run: ./vendor/bin/phpunit
103+ - name: Test PHPUnit
104+ run: ./vendor/bin/phpunit
91105
92106
93107
You can’t perform that action at this time.
0 commit comments