Skip to content

Commit dc05ad2

Browse files
committed
Update captain hook for windows
1 parent 458af6a commit dc05ad2

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

captainhook.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
{
2-
"pre-push": {
3-
"enabled": true,
4-
"actions": [
5-
{
6-
"action": "composer analyse"
7-
}
8-
]
9-
},
10-
"pre-commit": {
11-
"enabled": true,
12-
"actions": [
13-
{
14-
"action": ".\\vendor\\bin\\php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
15-
"conditions": [
16-
{
17-
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
18-
"args": ["php"]
19-
}
20-
]
21-
}
22-
]
23-
},
24-
"post-change": {
25-
"enabled": true,
26-
"actions": [
27-
{
28-
"action": "composer install",
29-
"options": [],
30-
"conditions": [
31-
{
32-
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
33-
"args": [
34-
[
35-
"composer.json",
36-
"composer.lock"
37-
]
38-
]
39-
}
40-
]
41-
}
42-
]
43-
}
44-
}
1+
{
2+
"pre-push": {
3+
"enabled": true,
4+
"actions": [
5+
{
6+
"action": ".\\vendor\\bin\\phpstan analyse --memory-limit 300M"
7+
}
8+
]
9+
},
10+
"pre-commit": {
11+
"enabled": true,
12+
"actions": [
13+
{
14+
"action": ".\\vendor\\bin\\php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
15+
"conditions": [
16+
{
17+
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
18+
"args": ["php"]
19+
}
20+
]
21+
}
22+
]
23+
},
24+
"post-change": {
25+
"enabled": true,
26+
"actions": [
27+
{
28+
"action": "composer install",
29+
"options": [],
30+
"conditions": [
31+
{
32+
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
33+
"args": [
34+
[
35+
"composer.json",
36+
"composer.lock"
37+
]
38+
]
39+
}
40+
]
41+
}
42+
]
43+
}
44+
}

0 commit comments

Comments
 (0)