File tree 5 files changed +30
-64
lines changed
5 files changed +30
-64
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,13 @@ on: [push]
5
5
jobs :
6
6
style :
7
7
runs-on : ubuntu-latest
8
-
9
8
steps :
10
- - name : Checkout code
11
- uses : actions/checkout@v1
12
-
13
- - name : Fix style
14
- uses : docker://oskarstark/php-cs-fixer-ga
15
- with :
16
- args : --config=.php_cs --allow-risky=yes
17
-
18
- - name : Extract branch name
19
- shell : bash
20
- run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21
- id : extract_branch
22
-
23
- - name : Commit changes
24
- uses :
stefanzweifel/[email protected]
25
- with :
26
- commit_message : Fix styling
27
- branch : ${{ steps.extract_branch.outputs.branch }}
28
- env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9
+ - name : Git checkout
10
+ uses : actions/checkout@v2
11
+ - name : Install Dependencies
12
+ run : composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
13
+ - name : normalize php
14
+ run : php vendor/bin/phpcbf
15
+ -
uses :
stefanzweifel/[email protected]
16
+ with :
17
+ commit_message : Fix formatting with phpcbf
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
10
10
matrix :
11
11
os : [ubuntu-latest, windows-latest]
12
12
php : [7.4]
13
- laravel : [7 .*]
13
+ laravel : [8 .*]
14
14
dependency-version : [prefer-lowest, prefer-stable]
15
15
include :
16
- - laravel : 7 .*
17
- testbench : 5 .*
16
+ - laravel : 8 .*
17
+ testbench : 6 .*
18
18
19
19
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
20
20
38
38
- name : Install dependencies
39
39
run : |
40
40
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --ignore-platform-req=ext-fileinfo
42
42
43
43
- name : Execute tests
44
44
run : vendor/bin/phpunit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
"spatie/laravel-dashboard" : " ^2.0"
21
21
},
22
22
"require-dev" : {
23
- "phpunit/phpunit" : " ^9.3"
23
+ "phpunit/phpunit" : " ^9.3" ,
24
+ "squizlabs/php_codesniffer" : " ^3.6.2"
24
25
},
25
26
"autoload" : {
26
27
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" spatie" >
3
+
4
+ <file >src</file >
5
+ <file >tests</file >
6
+
7
+ <rule ref =" PSR1" />
8
+ <rule ref =" PSR2" />
9
+ <rule ref =" PSR12" />
10
+
11
+ <rule ref =" Generic.Files.LineLength" >
12
+ <severity >0</severity >
13
+ </rule >
14
+
15
+ </ruleset >
You can’t perform that action at this time.
0 commit comments