Skip to content

Commit 223e104

Browse files
committed
feat: autorun all quality checks
1 parent 5f7b4c8 commit 223e104

File tree

2 files changed

+57
-52
lines changed

2 files changed

+57
-52
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
with:
1313
php-version: 8.3
1414
- run: composer install --no-progress --prefer-dist
15-
- run: vendor/bin/phpunit
15+
- run: composer run check-quality
1616
env:
1717
API_KEY: ${{ secrets.API_KEY }}

composer.json

Lines changed: 56 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,60 @@
11
{
2-
"name": "foxentry/php-api-client",
3-
"description": "Foxentry.com PHP API client",
4-
"keywords": ["Foxentry", "Foxentry.com"],
5-
"license": "GPL-3.0-or-later",
6-
"authors": [
7-
{
8-
"name": "Dominik Hošic",
9-
"email": "[email protected]"
10-
},{
11-
"name": "Vojtěch Sajdl",
12-
"email": "[email protected]"
13-
}
14-
],
15-
"require": {
16-
"php": ">=8.1",
17-
"guzzlehttp/guzzle": "^7.8",
18-
"ext-json": "*"
2+
"name": "foxentry/php-api-client",
3+
"description": "Foxentry.com PHP API client",
4+
"keywords": [
5+
"Foxentry",
6+
"Foxentry.com"
7+
],
8+
"license": "GPL-3.0-or-later",
9+
"authors": [
10+
{
11+
"name": "Dominik Hošic",
12+
"email": "[email protected]"
1913
},
20-
"require-dev": {
21-
"phpunit/phpunit": "^11.3.1",
22-
"phpstan/phpstan": "^1.12",
23-
"squizlabs/php_codesniffer": "^3.10",
24-
"slevomat/coding-standard": "^8.15",
25-
"phpstan/phpstan-phpunit": "^1.4",
26-
"phpstan/extension-installer": "^1.4"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"Foxentry\\": "src/"
31-
}
32-
},
33-
"autoload-dev": {
34-
"psr-4": {
35-
"Tests\\": "tests/",
36-
"Tests\\Unit\\": "tests/Unit/"
37-
}
38-
},
39-
"config": {
40-
"allow-plugins": {
41-
"dealerdirect/phpcodesniffer-composer-installer": true,
42-
"phpstan/extension-installer": true
43-
}
44-
},
45-
"scripts": {
46-
"lint": "phpcs -s",
47-
"lint-fix": "phpcbf",
48-
"phpstan": "phpstan analyse -c phpstan.neon",
49-
"test": "phpunit",
50-
"check-quality": [
51-
"@lint",
52-
"@phpstan"
53-
]
14+
{
15+
"name": "Vojtěch Sajdl",
16+
"email": "[email protected]"
17+
}
18+
],
19+
"require": {
20+
"php": ">=8.1",
21+
"guzzlehttp/guzzle": "^7.8",
22+
"ext-json": "*"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "^11.3.1",
26+
"phpstan/phpstan": "^1.12",
27+
"squizlabs/php_codesniffer": "^3.10",
28+
"slevomat/coding-standard": "^8.15",
29+
"phpstan/phpstan-phpunit": "^1.4",
30+
"phpstan/extension-installer": "^1.4"
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"Foxentry\\": "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"Tests\\": "tests/",
40+
"Tests\\Unit\\": "tests/Unit/"
41+
}
42+
},
43+
"config": {
44+
"allow-plugins": {
45+
"dealerdirect/phpcodesniffer-composer-installer": true,
46+
"phpstan/extension-installer": true
5447
}
48+
},
49+
"scripts": {
50+
"lint": "phpcs -s",
51+
"lint-fix": "phpcbf",
52+
"phpstan": "phpstan analyse -c phpstan.neon",
53+
"test": "phpunit",
54+
"check-quality": [
55+
"@lint",
56+
"@phpstan",
57+
"@test"
58+
]
59+
}
5560
}

0 commit comments

Comments
 (0)