File tree 7 files changed +61
-46
lines changed
7 files changed +61
-46
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ trim_trailing_whitespace = true
7
7
insert_final_newline = true
8
8
indent_style = tab
9
9
indent_size = 4
10
+
11
+ [* .{yml,yaml} ]
12
+ indent_style = space
13
+ indent_size = 2
Original file line number Diff line number Diff line change 1
1
tests export-ignore
2
- .coveralls.yml export-ignore
3
2
.editorconfig export-ignore
4
3
.gitattributes export-ignore
5
4
.gitignore export-ignore
Original file line number Diff line number Diff line change
1
+ name : tests
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ tests :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ php-version :
11
+ - " 7.1"
12
+ - " 7.2"
13
+ - " 7.3"
14
+ - " 7.4"
15
+
16
+ steps :
17
+ - name : " Checkout"
18
+
19
+
20
+ - name : " Install PHP"
21
+ uses : shivammathur/setup-php@v2
22
+ with :
23
+ coverage : " none"
24
+ php-version : " ${{ matrix.php-version }}"
25
+
26
+ - name : " Validate Composer"
27
+ run : " composer validate"
28
+
29
+ - name : " Cache dependencies"
30
+
31
+ with :
32
+ path : " ~/.composer/cache"
33
+ key : " php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
34
+ restore-keys : " php-${{ matrix.php-version }}-composer-"
35
+
36
+ - name : " Install dependencies"
37
+ run : " composer update --no-interaction --no-progress --no-suggest --prefer-dist"
38
+
39
+ - name : " Check Composer"
40
+ run : " composer run-script check:composer"
41
+ if : ${{ matrix.php-version == '7.4' }}
42
+
43
+ - name : " Check lint"
44
+ run : " composer run-script check:lint"
45
+
46
+ - name : " Check CodeStyle"
47
+ run : " composer run-script check:cs"
48
+ if : ${{ matrix.php-version == '7.4' }}
49
+
50
+ - name : " Check types"
51
+ run : " composer run-script check:types"
52
+ if : ${{ matrix.php-version == '7.4' }}
53
+
54
+ - name : " Check tests"
55
+ run : " composer run-script check:tests"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
},
24
24
"require-dev" : {
25
25
"nette/utils" : " ^3.0" ,
26
- "php-coveralls/php-coveralls" : " ^2.1" ,
27
26
"php-parallel-lint/php-console-highlighter" : " ^0.4.0" ,
28
27
"php-parallel-lint/php-parallel-lint" : " ^1.2.0" ,
29
28
"phpstan/phpstan-nette" : " ^0.12.0" ,
55
54
" @check:tests"
56
55
],
57
56
"check:composer" : " composer validate" ,
58
- "check:tests" : " phpunit --coverage-text " ,
57
+ "check:tests" : " phpunit" ,
59
58
"check:cs" : " phpcs --extensions=php --encoding=utf-8 --tab-width=4 --colors --ignore=tests/*/data -sp src tests/src" ,
60
59
"check:lint" : " parallel-lint src tests/src" ,
61
60
"check:types" : " phpstan analyse --memory-limit=1G -l max src tests" ,
62
61
"fix" : " @fix:cs" ,
63
- "fix:cs" : " phpcbf --extensions=php --encoding=utf-8 --tab-width=4 --colors --ignore=tests/*/data -sp src tests/src" ,
64
- "coveralls" : " php-coveralls -v"
62
+ "fix:cs" : " phpcbf --extensions=php --encoding=utf-8 --tab-width=4 --colors --ignore=tests/*/data -sp src tests/src"
65
63
},
66
64
"config" : {
67
65
"sort-packages" : true
Original file line number Diff line number Diff line change 11
11
failOnRisky=" true"
12
12
failOnWarning=" true"
13
13
>
14
-
15
- <logging >
16
- <log
17
- type=" coverage-text"
18
- target=" php://stdout"
19
- showUncoveredFiles=" true"
20
- showOnlySummary=" true"
21
- />
22
- <log type =" coverage-clover" target =" tests/tmp/clover.xml" />
23
- </logging >
24
-
25
14
<testsuites >
26
15
<testsuite name =" Exception rules for PHPStan" >
27
16
<directory >./tests</directory >
You can’t perform that action at this time.
0 commit comments