Skip to content

Commit 8594a2b

Browse files
committed
Update build
1 parent 4d497ba commit 8594a2b

3 files changed

Lines changed: 7 additions & 44 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v1
16+
uses: actions/checkout@v6
1717

1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
@@ -36,8 +36,8 @@ jobs:
3636
- name: Install dependencies
3737
run: composer install --prefer-dist --no-progress --no-suggest
3838

39-
- name: Run PHP CodeSniffer
40-
run: composer sniffer:check
39+
- name: Run PHP Coding Standards Fixer
40+
run: composer cs:check
4141

4242
- name: Run PHPStan
4343
run: composer stan

composer.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
},
1616
"require-dev": {
1717
"friendsofphp/php-cs-fixer": "^3",
18-
"phpstan/phpstan": "^1 || ^2",
19-
"phpunit/phpunit": "^11",
20-
"squizlabs/php_codesniffer": "^3"
18+
"phpstan/phpstan": "^2",
19+
"phpunit/phpunit": "^11"
2120
},
2221
"autoload": {
2322
"psr-4": {
@@ -33,19 +32,12 @@
3332
"sort-packages": true
3433
},
3534
"scripts": {
36-
"cs:check": [
37-
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes"
38-
],
39-
"cs:fix": [
40-
"php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes"
41-
],
42-
"sniffer:check": "phpcs --standard=phpcs.xml",
43-
"sniffer:fix": "phpcbf --standard=phpcs.xml",
35+
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes",
36+
"cs:fix": "php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes",
4437
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",
4538
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage",
4639
"test:all": [
4740
"@cs:check",
48-
"@sniffer:check",
4941
"@stan",
5042
"@test"
5143
],

phpcs.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)