Skip to content

Commit 15bbc6f

Browse files
🥃 add whisky
1 parent 1d9c7c1 commit 15bbc6f

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

composer.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"madewithlove/license-checker": "^v1.0",
2020
"phpstan/phpstan": "^2.1",
2121
"phpstan/phpstan-deprecation-rules": "^2.0",
22-
"rector/rector": "^2.4"
22+
"rector/rector": "^2.4",
23+
"projektgopher/whisky": "^0.7.4"
2324
},
2425
"suggest": {
2526
"ext-imagick": "Required for PDF rasterization and image processing features",
@@ -35,10 +36,23 @@
3536
"bin/cli.php"
3637
],
3738
"scripts": {
38-
"lint": "php-cs-fixer fix --dry-run --diff",
39-
"phpstan": "phpstan analyse",
40-
"format": "php-cs-fixer fix",
41-
"rector": "rector process src tests",
42-
"rector:check": "rector process src tests --dry-run"
39+
"lint:cs-fixer": "php-cs-fixer fix --dry-run --diff",
40+
"lint:rector": "rector process src tests --dry-run",
41+
"lint:phpstan": "phpstan analyse",
42+
"lint": [
43+
"@lint:phpstan",
44+
"@lint:cs-fixer",
45+
"@lint:rector"
46+
],
47+
"format:cs-fixer": "php-cs-fixer fix",
48+
"format:rector": "rector process src tests",
49+
"format": [
50+
"@format:cs-fixer",
51+
"@format:rector"
52+
],
53+
"test:unit": "phpunit -c tests/phpunit.xml",
54+
"test:functional": "phpunit -c tests/functional.xml",
55+
"test:smoke:v1": "./tests/test_v1_code_samples.sh",
56+
"test:smoke:v2": "./tests/test_v2_code_samples.sh"
4357
}
4458
}

whisky.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"disabled": [],
3+
"hooks": {
4+
"pre-commit": [
5+
"composer lint"
6+
],
7+
"pre-push": [
8+
"composer test:unit"
9+
]
10+
}
11+
}

0 commit comments

Comments
 (0)