File tree 9 files changed +464
-21
lines changed 9 files changed +464
-21
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ tmp export-ignore
6
6
.gitattributes export-ignore
7
7
.gitignore export-ignore
8
8
Makefile export-ignore
9
+ phpcs.xml export-ignore
9
10
phpstan.neon export-ignore
10
11
phpunit.xml export-ignore
Original file line number Diff line number Diff line change 14
14
"enabled" : true ,
15
15
"groupName" : " root-composer"
16
16
},
17
+ {
18
+ "matchPaths" : [" build-cs/**" ],
19
+ "enabled" : true ,
20
+ "groupName" : " build-cs"
21
+ },
17
22
{
18
23
"matchPaths" : [" .github/**" ],
19
24
"enabled" : true ,
Original file line number Diff line number Diff line change 42
42
- name : " Lint"
43
43
run : " make lint"
44
44
45
- coding-standard :
45
+ coding-standards :
46
46
name : " Coding Standard"
47
47
48
48
runs-on : " ubuntu-latest"
@@ -51,28 +51,18 @@ jobs:
51
51
- name : " Checkout"
52
52
uses : actions/checkout@v3
53
53
54
- - name : " Checkout build-cs"
55
- uses : actions/checkout@v3
56
- with :
57
- repository : " phpstan/build-cs"
58
- path : " build-cs"
59
-
60
54
- name : " Install PHP"
61
55
uses : " shivammathur/setup-php@v2"
62
56
with :
63
57
coverage : " none"
64
- php-version : " 8.2 "
58
+ php-version : " 8.0 "
65
59
66
60
- name : " Validate Composer"
67
61
run : " composer validate"
68
62
69
63
- name : " Install dependencies"
70
64
run : " composer install --no-interaction --no-progress"
71
65
72
- - name : " Install build-cs dependencies"
73
- working-directory : " build-cs"
74
- run : " composer install --no-interaction --no-progress"
75
-
76
66
- name : " Lint"
77
67
run : " make lint"
78
68
Original file line number Diff line number Diff line change 1
1
/src /GeneratedConfig.php
2
- /build-cs
3
2
/vendor
4
3
/composer.lock
5
4
.phpunit.result.cache
Original file line number Diff line number Diff line change 6
6
php vendor/bin/parallel-lint --colors \
7
7
src
8
8
9
- .PHONY : cs-install
10
- cs-install :
11
- git clone https://github.com/phpstan/build-cs.git || true
12
- git -C build-cs fetch origin && git -C build-cs reset --hard origin/main
13
- composer install --working-dir build-cs
14
-
15
9
.PHONY : cs
16
10
cs :
17
- php build-cs/vendor/bin/phpcs --standard=build-cs/phpcs.xml src
11
+ composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
18
12
19
13
.PHONY : cs-fix
20
14
cs-fix :
21
- php build-cs/vendor/bin/phpcbf --standard=build-cs/phpcs.xml src
15
+ php build-cs/vendor/bin/phpcbf
22
16
23
17
.PHONY : phpstan
24
18
phpstan :
Original file line number Diff line number Diff line change
1
+ /vendor
Original file line number Diff line number Diff line change
1
+ {
2
+ "require-dev" : {
3
+ "consistence-community/coding-standard" : " ^3.11.0" ,
4
+ "dealerdirect/phpcodesniffer-composer-installer" : " ^1.0.0" ,
5
+ "slevomat/coding-standard" : " ^8.8.0" ,
6
+ "squizlabs/php_codesniffer" : " ^3.5.3"
7
+ },
8
+ "config" : {
9
+ "allow-plugins" : {
10
+ "dealerdirect/phpcodesniffer-composer-installer" : true
11
+ }
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments