File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 8
8
- master
9
9
10
10
jobs :
11
- php-cs-fixer :
12
- runs-on : ubuntu-latest
11
+ phpcsfixer :
12
+ name : Linting with php-cs-fixer
13
+ runs-on : ubuntu-20.04
14
+ strategy :
15
+ fail-fast : false
16
+
13
17
steps :
14
- - uses : actions/checkout@v4
15
- with :
16
- ref : ${{ github.head_ref }}
18
+ - name : Checkout code
19
+ uses : actions/checkout@v4
17
20
18
- - uses : shivammathur/setup-php@v2
21
+ - name : Install PHP
22
+ uses : shivammathur/setup-php@v2
19
23
with :
20
- coverage : none
21
- extensions : mbstring
24
+ coverage : pcov
25
+ ini-values : zend.assertions=1, assert.exception=1
22
26
php-version : 8.1
27
+ extensions : memcached
28
+ tools : cs2pr
23
29
24
- - uses : ramsey/composer-install@v2
30
+ - name : Install dependencies with Composer
31
+ uses : ramsey/composer-install@v2
25
32
26
- - run : vendor/bin/php-cs-fixer fix
27
-
28
- - uses : stefanzweifel/git-auto-commit-action@v4
29
- with :
30
- commit_message : Apply php-cs-fixer changes
33
+ - name : Run PHP-CS-Fixer
34
+ run : ./vendor/bin/php-cs-fixer fix --dry-run --diff --format checkstyle | cs2pr
You can’t perform that action at this time.
0 commit comments