File tree Expand file tree Collapse file tree 9 files changed +21
-464
lines changed Expand file tree Collapse file tree 9 files changed +21
-464
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,5 @@ tmp export-ignore
6
6
.gitattributes export-ignore
7
7
.gitignore export-ignore
8
8
Makefile export-ignore
9
- phpcs.xml export-ignore
10
9
phpstan.neon export-ignore
11
10
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
- },
22
17
{
23
18
"matchPaths" : [" .github/**" ],
24
19
"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-standards :
45
+ coding-standard :
46
46
name : " Coding Standard"
47
47
48
48
runs-on : " ubuntu-latest"
@@ -51,18 +51,28 @@ 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
+
54
60
- name : " Install PHP"
55
61
uses : " shivammathur/setup-php@v2"
56
62
with :
57
63
coverage : " none"
58
- php-version : " 8.0 "
64
+ php-version : " 8.2 "
59
65
60
66
- name : " Validate Composer"
61
67
run : " composer validate"
62
68
63
69
- name : " Install dependencies"
64
70
run : " composer install --no-interaction --no-progress"
65
71
72
+ - name : " Install build-cs dependencies"
73
+ working-directory : " build-cs"
74
+ run : " composer install --no-interaction --no-progress"
75
+
66
76
- name : " Lint"
67
77
run : " make lint"
68
78
Original file line number Diff line number Diff line change 1
1
/src /GeneratedConfig.php
2
+ /build-cs
2
3
/vendor
3
4
/composer.lock
4
5
.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
+
9
15
.PHONY : cs
10
16
cs :
11
- composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
17
+ php build-cs/vendor/bin/phpcs --standard=build-cs/phpcs.xml src
12
18
13
19
.PHONY : cs-fix
14
20
cs-fix :
15
- php build-cs/vendor/bin/phpcbf
21
+ php build-cs/vendor/bin/phpcbf --standard=build-cs/phpcs.xml src
16
22
17
23
.PHONY : phpstan
18
24
phpstan :
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments