Skip to content

Commit b18dba9

Browse files
committed
Revert "[CI] Remove packages normalization job"
This reverts commit 6ce3a6e.
1 parent 6ce3a6e commit b18dba9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/code-quality.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,15 @@ jobs:
8181
source .github/workflows/.utils.sh
8282
8383
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && $PHPUNIT_INSTALL && $PHPSTAN)'"
84+
85+
normalize-package-php:
86+
name: Normalize PHP Packages
87+
runs-on: ubuntu-latest
88+
steps:
89+
- uses: actions/checkout@v4
90+
- name: Setup PHP
91+
uses: shivammathur/setup-php@v2
92+
with:
93+
php-version: '8.1'
94+
- run: composer install --no-progress --no-interaction --ansi
95+
- run: composer packages-normalize-check

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
},
1919
"scripts": {
2020
"packages-normalize": "php .github/get-ux-packages.php | jq -r '.[] | .path' | while read -r path; do composer normalize \"$path/composer.json\" --no-check-lock; done",
21+
"packages-normalize-check": "php .github/get-ux-packages.php | jq -r '.[] | .path' | while read -r path; do composer normalize \"$path/composer.json\" --no-check-lock --dry-run || echo \"\\033[41mFile $path is not normalized.\\033[0m\n\\033[41mPlease run \"composer packages-normalize\" in Symfony UX root repository.\\033[0m\n\" && exit 1; done"
2122
}
2223
}

0 commit comments

Comments
 (0)