Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Tests

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

jobs:
phpstan:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
php: ["8.2", "8.3", "8.4"]

steps:
- name: Checkout code
Expand All @@ -52,5 +52,5 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run tests
run: ./vendor/bin/pest
- name: Run Tests
run: composer ci:test
12 changes: 10 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"require-dev": {
"pestphp/pest": "^3.0",
"phpstan/phpstan": "^2.0"
"phpstan/phpstan": "^2.0",
"laravel/pint": "^1.26"
},
"config": {
"allow-plugins": {
Expand All @@ -28,6 +29,13 @@
},
"scripts": {
"test": "pest",
"analyse": "phpstan analyse"
"analyse": "phpstan analyse",
"format": "./vendor/bin/pint",
"format:test": "./vendor/bin/pint --test",
"ci:test": [
"@format:check",
"@analyse",
"@test"
]
}
}
71 changes: 69 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "psr12",
"notPath": [
"vendor"
]
}
Loading