Skip to content

Commit 6786861

Browse files
committed
Add new cs check for composer.json
1 parent e747ad6 commit 6786861

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: 'Continuous integration'
22
on: ['push', 'pull_request']
33
jobs:
4-
php-cs:
4+
cs:
55
runs-on: 'ubuntu-latest'
6-
name: 'PHP coding style'
6+
name: 'Coding style'
77
steps:
88
- name: 'Checkout'
99
uses: 'actions/checkout@v2'
@@ -12,10 +12,19 @@ jobs:
1212
uses: 'shivammathur/setup-php@v2'
1313
with:
1414
php-version: '7.4'
15+
coverage: 'none'
1516
extensions: 'json, mbstring, tokenizer'
16-
tools: 'cs2pr, php-cs-fixer:2.16.4'
17+
tools: 'composer-normalize, php-cs-fixer:2.16.4'
1718
env:
1819
update: true
1920

20-
- name: 'Check coding style'
21-
run: 'php-cs-fixer fix --diff --dry-run --using-cache=false --format=checkstyle | cs2pr'
21+
- name: 'Display tools versions'
22+
run: |
23+
composer-normalize --version
24+
php-cs-fixer --version
25+
26+
- name: 'Check PHP code'
27+
run: 'php-cs-fixer fix --diff --dry-run --using-cache=false'
28+
29+
- name: 'Check composer.json'
30+
run: 'composer-normalize --diff --dry-run --no-update-lock'

0 commit comments

Comments
 (0)