File tree 7 files changed +21
-466
lines changed
7 files changed +21
-466
lines changed Original file line number Diff line number Diff line change 48
48
- name : " Lint"
49
49
run : " make lint"
50
50
51
- coding-standards :
51
+ coding-standard :
52
52
name : " Coding Standard"
53
53
54
54
runs-on : " ubuntu-latest"
@@ -57,11 +57,17 @@ jobs:
57
57
- name : " Checkout"
58
58
uses : actions/checkout@v3
59
59
60
+ - name : " Checkout build-cs"
61
+ uses : actions/checkout@v3
62
+ with :
63
+ repository : " phpstan/build-cs"
64
+ path : " build-cs"
65
+
60
66
- name : " Install PHP"
61
67
uses : " shivammathur/setup-php@v2"
62
68
with :
63
69
coverage : " none"
64
- php-version : " 8.0 "
70
+ php-version : " 8.2 "
65
71
ini-file : development
66
72
67
73
- name : " Validate Composer"
70
76
- name : " Install dependencies"
71
77
run : " composer install --no-interaction --no-progress"
72
78
79
+ - name : " Install build-cs dependencies"
80
+ working-directory : " build-cs"
81
+ run : " composer install --no-interaction --no-progress"
82
+
73
83
- name : " Lint"
74
84
run : " make lint"
75
85
Original file line number Diff line number Diff line change 1
1
/tests /tmp
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 @@ -11,13 +11,19 @@ lint:
11
11
--exclude tests/Rules/DeadCode/data/bug-383.php \
12
12
src tests
13
13
14
+ .PHONY : cs-install
15
+ cs-install :
16
+ git clone https://github.com/phpstan/build-cs.git || true
17
+ git -C build-cs fetch origin && git -C build-cs reset --hard origin/main
18
+ composer install --working-dir build-cs
19
+
14
20
.PHONY : cs
15
21
cs :
16
- composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
22
+ php build-cs/vendor/bin/phpcs --standard=build-cs/phpcs.xml src tests
17
23
18
24
.PHONY : cs-fix
19
25
cs-fix :
20
- php build-cs/vendor/bin/phpcbf
26
+ php build-cs/vendor/bin/phpcbf --standard=build-cs/phpcs.xml src tests
21
27
22
28
.PHONY : phpstan
23
29
phpstan :
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments