mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
Run updated recipes on maintained Symfony versions
This commit is contained in:
@@ -240,34 +240,6 @@ jobs:
|
||||
echo PACKAGES=$PACKAGES >> $GITHUB_ENV
|
||||
[[ "" != "$PACKAGES" ]]
|
||||
|
||||
-
|
||||
name: Setup PHP 7.4
|
||||
if: "always() && steps.config.outcome == 'success'"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
coverage: "none"
|
||||
php-version: "7.4"
|
||||
|
||||
-
|
||||
name: Create-project with skeleton ^5
|
||||
if: "always() && steps.config.outcome == 'success'"
|
||||
run: |
|
||||
set -x
|
||||
php -v
|
||||
composer create-project --ansi "symfony/skeleton:^5" v5
|
||||
cd v5
|
||||
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
|
||||
composer config minimum-stability dev
|
||||
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
|
||||
composer require -W --ansi $PACKAGES
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [[ EXIT_CODE -eq 2 ]]; then
|
||||
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 5\n#\n#\n#\n"
|
||||
fi
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
||||
-
|
||||
name: Setup PHP 8.1
|
||||
if: "always() && steps.config.outcome == 'success'"
|
||||
@@ -288,3 +260,31 @@ jobs:
|
||||
composer config minimum-stability dev
|
||||
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
|
||||
composer require -W --ansi $PACKAGES
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [[ EXIT_CODE -eq 2 ]]; then
|
||||
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 6\n#\n#\n#\n"
|
||||
fi
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
||||
-
|
||||
name: Setup PHP 8.2
|
||||
if: "always() && steps.config.outcome == 'success'"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
coverage: "none"
|
||||
php-version: "8.2"
|
||||
|
||||
-
|
||||
name: Create-project with skeleton ^7
|
||||
if: "always() && steps.config.outcome == 'success'"
|
||||
run: |
|
||||
set -x
|
||||
php -v
|
||||
composer create-project --ansi "symfony/skeleton:^7" v7
|
||||
cd v7
|
||||
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
|
||||
composer config minimum-stability dev
|
||||
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
|
||||
composer require -W --ansi $PACKAGES
|
||||
|
||||
Reference in New Issue
Block a user