File tree 9 files changed +21
-468
lines changed
9 files changed +21
-468
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,5 @@ tmp export-ignore
13
13
build-abnfgen.sh export-ignore
14
14
CODE_OF_CONDUCT.md export-ignore
15
15
Makefile export-ignore
16
- phpcs.xml export-ignore
17
16
phpstan.neon export-ignore
18
17
phpunit.xml export-ignore
Original file line number Diff line number Diff line change 10
10
"enabled" : true ,
11
11
"groupName" : " root-composer"
12
12
},
13
- {
14
- "matchPaths" : [" build-cs/**" ],
15
- "enabled" : true ,
16
- "groupName" : " build-cs"
17
- },
18
13
{
19
14
"matchPaths" : [" .github/**" ],
20
15
"enabled" : true ,
Original file line number Diff line number Diff line change 46
46
- name : " Lint"
47
47
run : " make lint"
48
48
49
- coding-standards :
49
+ coding-standard :
50
50
name : " Coding Standard"
51
51
52
52
runs-on : " ubuntu-latest"
@@ -55,18 +55,28 @@ jobs:
55
55
- name : " Checkout"
56
56
uses : actions/checkout@v3
57
57
58
+ - name : " Checkout build-cs"
59
+ uses : actions/checkout@v3
60
+ with :
61
+ repository : " phpstan/build-cs"
62
+ path : " build-cs"
63
+
58
64
- name : " Install PHP"
59
65
uses : " shivammathur/setup-php@v2"
60
66
with :
61
67
coverage : " none"
62
- php-version : " 8.0 "
68
+ php-version : " 8.2 "
63
69
64
70
- name : " Validate Composer"
65
71
run : " composer validate"
66
72
67
73
- name : " Install dependencies"
68
74
run : " composer install --no-interaction --no-progress"
69
75
76
+ - name : " Install build-cs dependencies"
77
+ working-directory : " build-cs"
78
+ run : " composer install --no-interaction --no-progress"
79
+
70
80
- name : " Lint"
71
81
run : " make lint"
72
82
Original file line number Diff line number Diff line change 2
2
/temp
3
3
/tools
4
4
/tests /tmp
5
+ /build-cs
5
6
/vendor
6
7
/composer.lock
7
8
.phpunit.result.cache
Original file line number Diff line number Diff line change @@ -13,13 +13,19 @@ lint:
13
13
--exclude tests/PHPStan/Rules/Methods/data \
14
14
--exclude tests/PHPStan/Rules/Functions/data
15
15
16
+ .PHONY : cs-install
17
+ cs-install :
18
+ git clone https://github.com/phpstan/build-cs.git || true
19
+ git -C build-cs fetch origin && git -C build-cs reset --hard origin/main
20
+ composer install --working-dir build-cs
21
+
16
22
.PHONY : cs
17
23
cs :
18
- composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
24
+ php build-cs/vendor/bin/phpcs --standard=build-cs/phpcs.xml src tests
19
25
20
26
.PHONY : cs-fix
21
27
cs-fix :
22
- php build-cs/vendor/bin/phpcbf
28
+ php build-cs/vendor/bin/phpcbf --standard=build-cs/phpcs.xml src tests
23
29
24
30
.PHONY : phpstan
25
31
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