File tree Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : run-tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ phpstan :
7
+ runs-on : ubuntu-latest
8
+ name : PHPStan
9
+
10
+ steps :
11
+ - name : Setup PHP
12
+ uses : shivammathur/setup-php@v2
13
+ with :
14
+ php-version : 8.1
15
+ coverage : none
16
+
17
+ - name : Checkout code
18
+ uses : actions/checkout@v2
19
+
20
+ - name : Cache dependencies
21
+ uses : actions/cache@v1
22
+ with :
23
+ path : ~/.composer/cache/files
24
+ key : dependencies-laravel-9.*-php-8.1-composer-${{ hashFiles('composer.json') }}
25
+
26
+ - name : Install dependencies
27
+ run : composer install
28
+
29
+ - name : Run phpstan
30
+ run : composer analyze
Original file line number Diff line number Diff line change 13
13
include :
14
14
- laravel : 8.*
15
15
testbench : ^6.17
16
- larastan : ^1.0
17
16
- laravel : 9.*
18
17
testbench : ^7.6
19
- larastan : ^2.0
20
18
os : [ubuntu-latest]
21
19
22
20
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
40
38
41
39
- name : Install dependencies
42
40
run : |
43
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/larastan:${{ matrix.larastan }}" --no-interaction --no-update
41
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }} --no-interaction --no-update
44
42
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45
43
46
- - name : Run phpstan
47
- if : ${{ matrix.laravel }} == '9.*'
48
- run : composer analyze
49
-
50
44
- name : Execute tests
51
45
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments