Skip to content

Commit 009e33c

Browse files
committed
add pint to static workflow
1 parent f5eb87e commit 009e33c

File tree

5 files changed

+79
-7
lines changed

5 files changed

+79
-7
lines changed

Diff for: .github/workflows/static.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ jobs:
3030

3131
- name: Types
3232
run: composer test:types
33+
34+
- name: Style
35+
run: composer test:lint

Diff for: composer.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
},
3838
"require-dev": {
3939
"pestphp/pest": "^2.33.0",
40-
"phpstan/phpstan": "^1.11.6",
41-
"rector/rector": "^1.2.0"
40+
"phpstan/phpstan": "^1.11.0",
41+
"rector/rector": "^1.2.0",
42+
"laravel/pint": "^1.16.0"
4243
},
4344
"minimum-stability": "dev",
4445
"prefer-stable": true,
@@ -51,11 +52,14 @@
5152
},
5253
"scripts": {
5354
"refactor": "rector",
55+
"lint": "pint",
5456
"test:refactor": "rector --dry-run",
57+
"test:lint": "pint --test",
5558
"test:types": "phpstan analyse --ansi",
5659
"test:unit": "pest --colors=always",
5760
"test": [
5861
"@test:refactor",
62+
"@test:lint",
5963
"@test:types",
6064
"@test:unit"
6165
]

Diff for: composer.lock

+67-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: rector.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\Set\ValueObject\LevelSetList;
76
use Rector\Set\ValueObject\SetList;
87

98
return RectorConfig::configure()
109
->withPaths([
11-
__DIR__ . '/src',
12-
__DIR__ . '/tests',
10+
__DIR__.'/src',
11+
__DIR__.'/tests',
1312
])
1413
->withSets([
1514
SetList::CODE_QUALITY,

Diff for: tests/toBeDivisibleBy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PHPUnit\Framework\ExpectationFailedException;
44

5-
it('passes', function(int $dividend, int $divisor): void {
5+
it('passes', function (int $dividend, int $divisor): void {
66
expect($dividend)->toBeDivisibleBy($divisor);
77
})->with([
88
'even' => [8, 4],

0 commit comments

Comments
 (0)