Skip to content

Commit 845fc39

Browse files
author
awcodes
committed
add asset handling and colors to configure.php
1 parent 9c767f2 commit 845fc39

File tree

13 files changed

+590
-119
lines changed

13 files changed

+590
-119
lines changed

.github/workflows/pint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: pint
2+
3+
on: push
4+
5+
jobs:
6+
pint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
with:
12+
ref: ${{ github.head_ref }}
13+
- name: Set up Node
14+
uses: actions/setup-node@v2
15+
- name: Install dependencies
16+
run: |
17+
composer install --no-interaction
18+
npm ci
19+
- name: Run Pint
20+
run: composer pint
21+
- name: Run Prettier
22+
run: npm run prettier
23+
- name: Commit changes
24+
uses: stefanzweifel/git-auto-commit-action@v4
25+
with:
26+
commit_message: >
27+
chore: fix code style

.php_cs.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
],
3838
'single_trait_insert_per_statement' => true,
3939
])
40-
->setFinder($finder);
40+
->setFinder($finder);

composer.json

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222
"illuminate/contracts": "^9.0"
2323
},
2424
"require-dev": {
25+
"laravel/pint": "^1.0",
2526
"nunomaduro/collision": "^6.0",
2627
"nunomaduro/larastan": "^2.0.1",
2728
"orchestra/testbench": "^7.0",
2829
"pestphp/pest": "^1.21",
2930
"pestphp/pest-plugin-laravel": "^1.1",
31+
"pestphp/pest-plugin-livewire": "^1.0",
32+
"pestphp/pest-plugin-parallel": "^0.3",
3033
"phpstan/extension-installer": "^1.1",
3134
"phpstan/phpstan-deprecation-rules": "^1.0",
3235
"phpstan/phpstan-phpunit": "^1.0",
@@ -45,12 +48,21 @@
4548
}
4649
},
4750
"scripts": {
48-
"analyse": "vendor/bin/phpstan analyse",
49-
"test": "vendor/bin/pest",
50-
"test-coverage": "vendor/bin/pest coverage"
51+
"pint": "pint",
52+
"test:pest": "pest --parallel",
53+
"test:phpstan": "phpstan analyse",
54+
"test": [
55+
"@test:pest",
56+
"@test:phpstan"
57+
]
5158
},
5259
"config": {
53-
"sort-packages": true
60+
"sort-packages": true,
61+
"allow-plugins": {
62+
"composer/package-versions-deprecated": true,
63+
"pestphp/pest-plugin": true,
64+
"phpstan/extension-installer": true
65+
}
5466
},
5567
"extra": {
5668
"laravel": {
@@ -64,4 +76,4 @@
6476
},
6577
"minimum-stability": "dev",
6678
"prefer-stable": true
67-
}
79+
}

0 commit comments

Comments
 (0)