Skip to content

Commit 892c6aa

Browse files
committed
ci: Add cs2pr handling for php-cs-fixer; avoid doing composer install
1 parent 528b39f commit 892c6aa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/style-check.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ on:
88
branches:
99
- master
1010

11-
env:
12-
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
13-
1411
jobs:
15-
tests:
12+
style-check:
1613
name: "Style Check"
1714

1815
runs-on: ubuntu-latest
@@ -28,10 +25,8 @@ jobs:
2825
extensions: "intl, zip"
2926
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On"
3027
php-version: "7.4"
31-
tools: composer
32-
33-
- name: "Update dependencies"
34-
run: "composer update ${{ env.COMPOSER_FLAGS }}"
28+
tools: cs2pr, php-cs-fixer
3529

3630
- name: "Run style-check"
37-
run: "composer style-check"
31+
run: |
32+
composer style-check -- --format=checkstyle src | cs2pr

0 commit comments

Comments
 (0)