-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgrumphp.yml.dist
More file actions
157 lines (144 loc) · 4.4 KB
/
grumphp.yml.dist
File metadata and controls
157 lines (144 loc) · 4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# https://github.com/phpro/grumphp#configuration
---
grumphp:
ascii:
failed: ~
succeeded: ~
fixer:
enabled: false
hide_circumvention_tip: true
process_timeout: 300
testsuites:
phpcs:
tasks:
- phpcs
phpstan:
tasks:
- phpstan
rector:
tasks:
- rector
phpunit:
tasks:
- phpunit_php_83
- phpunit_php_84
- phpunit_php_85
test_php_83:
tasks:
- phpunit_php_83
- behat
test_php_84:
tasks:
- phpunit_php_84
test_php_85:
tasks:
- phpunit_php_85
phpunit_all:
tasks:
- phpunit_php_83
- phpunit_php_84
- phpunit_php_85
all:
tasks:
- phpcs
- phpstan
- rector
- composer_validate
- composer_normalize
- composer_validate_autoload
- phpunit_php_83
- phpunit_php_84
- phpunit_php_85
- behat
behat:
tasks:
- behat
static:
tasks:
- phpcs
- phpstan
- rector
- composer_validate
- composer_normalize
- composer_validate_autoload
test:
tasks:
- phpunit_php_83
- phpunit_php_84
- phpunit_php_85
- behat
fast:
tasks:
- phpcs
- phpstan
- rector
- composer_validate
- composer_normalize
- composer_validate_autoload
- phpunit_php_83
- behat
tasks:
# --- Static analysis (priority 20 — runs first) ---
phpcs:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 php ./vendor/bin/phpcs -s"]
phpstan:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 php ./vendor/bin/phpstan analyze"]
rector:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 php ./vendor/bin/rector --dry-run"]
composer_validate:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 composer validate"]
composer_normalize:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 composer normalize --dry-run"]
composer_validate_autoload:
metadata:
task: shell
priority: 20
scripts:
- ["-c", "docker compose run --rm php83 composer dump-autoload --optimize --dry-run --strict-psr --strict-ambiguous"]
# --- Unit tests (priority 10 — runs second) ---
phpunit_php_83:
metadata:
task: shell
priority: 10
scripts:
- ["-c", "docker compose run --rm php83 php ./vendor/bin/phpunit"]
phpunit_php_84:
metadata:
task: shell
priority: 10
scripts:
- ["-c", "docker compose run --rm php84 php ./vendor/bin/phpunit"]
phpunit_php_85:
metadata:
task: shell
priority: 10
scripts:
- ["-c", "docker compose run --rm php85 php ./vendor/bin/phpunit"]
# --- Integration tests (priority 0 — runs last) ---
behat:
metadata:
task: shell
priority: 0
scripts:
- ["-c", "docker compose run --rm php83 php ./vendor/bin/behat -c tests/behat.yml --no-interaction --format=progress"]
- ["-c", "docker compose run --rm php83 php ./vendor/bin/behat -c examples/behat.yml --no-interaction --format=progress"]