This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree 3 files changed +42
-3
lines changed
3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change
1
+ workflow "Testing" {
2
+ on = " push"
3
+ resolves = [
4
+ " phpunit" ,
5
+ " phpstan-unit" ,
6
+ " phpstan-integration" ,
7
+ ]
8
+ }
9
+
10
+ action "dependency" {
11
+ uses = " docker://composer"
12
+ args = " install --prefer-source --no-progress"
13
+ }
14
+
15
+ action "phpunit" {
16
+ uses = " docker://php:7.2"
17
+ needs = [" dependency" ]
18
+ args = " vendor/bin/phpunit"
19
+ }
20
+
21
+ action "phpstan-unit" {
22
+ uses = " docker://php:7.2"
23
+ needs = [" dependency" ]
24
+ args = " vendor/bin/phpstan analyse --level=7 --no-progress ./src ./tests"
25
+ }
26
+
27
+ action "phpstan-integration" {
28
+ uses = " docker://php:7.2"
29
+ needs = [" dependency" ]
30
+ args = " vendor/bin/phpstan analyse --level=7 --no-progress --errorFormat=junit ./src ./tests"
31
+ }
Original file line number Diff line number Diff line change 11
11
"phpunit/phpunit" : " ^8.0"
12
12
},
13
13
"autoload" : {
14
- "psr-4" : {"Mavimo\\ PHPStan\\ ErrorFormatter\\ " : " src/" }
14
+ "psr-4" : {
15
+ "Mavimo\\ PHPStan\\ ErrorFormatter\\ " : " src/"
16
+ }
15
17
},
16
18
"autoload-dev" : {
17
- "classmap" : [" tests" , " vendor/phpstan/phpstan/tests/PHPStan" ]
19
+ "classmap" : [
20
+ " vendor/phpstan/phpstan/tests/PHPStan"
21
+ ],
22
+ "psr-4" : {
23
+ "Mavimo\\ Tests\\ PHPStan\\ ErrorFormatter\\ " : " tests/"
24
+ }
18
25
}
19
26
}
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types = 1 );
4
4
5
- namespace Mavimo \PHPStan \ErrorFormatter ;
5
+ namespace Mavimo \Tests \ PHPStan \ErrorFormatter ;
6
6
7
+ use Mavimo \PHPStan \ErrorFormatter \JunitErrorFormatter ;
7
8
use PHPStan \Command \ErrorFormatter \TestBaseFormatter ;
8
9
9
10
class JunitErrorFormatterTest extends TestBaseFormatter
You can’t perform that action at this time.
0 commit comments