File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 81
81
source .github/workflows/.utils.sh
82
82
83
83
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
Original file line number Diff line number Diff line change 18
18
},
19
19
"scripts" : {
20
20
"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"
21
22
}
22
23
}
You can’t perform that action at this time.
0 commit comments