mirror of
https://github.com/elyby/php-code-style.git
synced 2025-05-31 14:12:05 +05:30
Add composer normalizer
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -12,9 +12,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-versions:
|
||||
- "7.4"
|
||||
- "8.0"
|
||||
- "8.1"
|
||||
- '7.4'
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -42,6 +42,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: composer install
|
||||
|
||||
- name: Normalize composer.json
|
||||
if: matrix.php-versions == '8.1'
|
||||
run: composer normalize --dry-run
|
||||
|
||||
- name: PHP-CS-Fixer
|
||||
if: matrix.php-versions == '8.1'
|
||||
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
|
||||
|
||||
Reference in New Issue
Block a user