File tree Expand file tree Collapse file tree 1 file changed +58
-1
lines changed Expand file tree Collapse file tree 1 file changed +58
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
tests :
11
+ name : Unit tests
11
12
runs-on : ubuntu-latest
12
13
13
14
strategy :
14
15
fail-fast : true
15
16
matrix :
16
- php : [8.1]
17
+ php : [8.1, 8.2 ]
17
18
18
19
name : PHP ${{ matrix.php }}
19
20
33
34
34
35
- name : Execute tests
35
36
run : vendor/bin/phpunit --verbose
37
+
38
+ static-analysis :
39
+ name : Code analysis with PHPStan
40
+ runs-on : ubuntu-latest
41
+
42
+ strategy :
43
+ fail-fast : true
44
+ matrix :
45
+ php : [8.1, 8.2]
46
+
47
+ name : PHP ${{ matrix.php }}
48
+
49
+ steps :
50
+ - name : Checkout
51
+ uses : actions/checkout@v2
52
+
53
+ - name : Install PHP
54
+ uses : shivammathur/setup-php@v2
55
+ with :
56
+ php-version : ${{ matrix.php }}
57
+ tools : composer:v2
58
+ coverage : xdebug
59
+
60
+ - name : Install dependencies
61
+ run : composer install
62
+
63
+ - name : Execute PHPStan analysis
64
+ run : vendor/bin/phpstan --xdebug analyze src --level 8
65
+
66
+ mutation-tests :
67
+ name : Mutation tests with Infection
68
+ runs-on : ubuntu-latest
69
+
70
+ strategy :
71
+ fail-fast : true
72
+ matrix :
73
+ php : [8.1, 8.2]
74
+
75
+ name : PHP ${{ matrix.php }}
76
+
77
+ steps :
78
+ - name : Checkout
79
+ uses : actions/checkout@v2
80
+
81
+ - name : Install PHP
82
+ uses : shivammathur/setup-php@v2
83
+ with :
84
+ php-version : ${{ matrix.php }}
85
+ tools : composer:v2
86
+ coverage : xdebug
87
+
88
+ - name : Install dependencies
89
+ run : composer install
90
+
91
+ - name : Execute mutation tests
92
+ run : ./vendor/bin/infection --min-msi=40
You can’t perform that action at this time.
0 commit comments