File tree Expand file tree Collapse file tree 5 files changed +50
-6
lines changed Expand file tree Collapse file tree 5 files changed +50
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : linter
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - develop
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - develop
11
+ - main
12
+
13
+ permissions :
14
+ contents : write
15
+
16
+ jobs :
17
+ quality :
18
+ runs-on : ubuntu-latest
19
+ environment : Testing
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Setup PHP
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ' 8.4'
27
+
28
+ - name : Install Dependencies
29
+ run : |
30
+ composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
31
+
32
+ - name : Run Lint
33
+ run : vendor/bin/pint --test
34
+
35
+ # - name: Commit Changes
36
+ # uses: stefanzweifel/git-auto-commit-action@v5
37
+ # with:
38
+ # commit_message: fix code style
39
+ # commit_options: '--no-verify'
40
+ # file_pattern: |
41
+ # **/*
42
+ # !.github/workflows/*
Original file line number Diff line number Diff line change 14
14
"illuminate/support" : " ^11.0||^12.0"
15
15
},
16
16
"require-dev" : {
17
- "orchestra/testbench" : " ^9.0"
17
+ "orchestra/testbench" : " ^9.0" ,
18
+ "laravel/pint" : " ^1.22"
18
19
},
19
20
"autoload" : {
20
21
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ {
2
+ "preset" : " laravel" ,
3
+ "rules" : {
4
+ "no_unused_imports" : false
5
+ }
6
+ }
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ public function __construct()
36
36
37
37
/**
38
38
* Execute the console command.
39
- *
40
- * @return int
41
39
*/
42
40
public function handle (): int
43
41
{
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
13
13
* Load package service provider.
14
14
*
15
15
* @param Application $app
16
- * @return array
17
16
*/
18
17
protected function getPackageProviders ($ app ): array
19
18
{
@@ -26,7 +25,6 @@ protected function getPackageProviders($app): array
26
25
* Load package alias.
27
26
*
28
27
* @param Application $app
29
- * @return array
30
28
*/
31
29
protected function getPackageAliases ($ app ): array
32
30
{
@@ -39,7 +37,6 @@ protected function getPackageAliases($app): array
39
37
* Define environment setup.
40
38
*
41
39
* @param Application $app
42
- * @return void
43
40
*/
44
41
protected function defineEnvironment ($ app ): void
45
42
{
You can’t perform that action at this time.
0 commit comments