Skip to content

Commit 59d2720

Browse files
Merge pull request #1 from dynamik-dev/task/code-cleanup
code cleanup
2 parents 9a6d840 + 79eecd7 commit 59d2720

16 files changed

Lines changed: 1521 additions & 53 deletions

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main, develop ]
7+
branches: [main, develop]
88

99
jobs:
1010
phpstan:
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
php: ['8.2', '8.3', '8.4']
39+
php: ["8.2", "8.3", "8.4"]
4040

4141
steps:
4242
- name: Checkout code
@@ -52,5 +52,5 @@ jobs:
5252
- name: Install dependencies
5353
run: composer install --prefer-dist --no-progress --no-interaction
5454

55-
- name: Run tests
56-
run: ./vendor/bin/pest
55+
- name: Run Tests
56+
run: composer ci:test

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
"require-dev": {
2121
"pestphp/pest": "^3.0",
22-
"phpstan/phpstan": "^2.0"
22+
"phpstan/phpstan": "^2.0",
23+
"laravel/pint": "^1.26"
2324
},
2425
"config": {
2526
"allow-plugins": {
@@ -28,6 +29,13 @@
2829
},
2930
"scripts": {
3031
"test": "pest",
31-
"analyse": "phpstan analyse"
32+
"analyse": "phpstan analyse",
33+
"format": "./vendor/bin/pint",
34+
"format:test": "./vendor/bin/pint --test",
35+
"ci:test": [
36+
"@format:check",
37+
"@analyse",
38+
"@test"
39+
]
3240
}
3341
}

composer.lock

Lines changed: 69 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"preset": "psr12",
3+
"notPath": [
4+
"vendor"
5+
]
6+
}

0 commit comments

Comments
 (0)