Skip to content

Commit 72b3dda

Browse files
Test recipes on Symfony 5&6
1 parent 7a02acd commit 72b3dda

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/callable-qa.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
required: false
1515
type: string
1616
create_project_php:
17-
default: '7.4'
1817
required: false
1918
type: string
2019

@@ -225,13 +224,6 @@ jobs:
225224
runs-on: Ubuntu-20.04
226225

227226
steps:
228-
-
229-
name: Setup PHP
230-
uses: shivammathur/setup-php@v2
231-
with:
232-
coverage: "none"
233-
php-version: "${{ inputs.create_project_php }}"
234-
235227
-
236228
name: Export configuration
237229
continue-on-error: true
@@ -242,31 +234,47 @@ jobs:
242234
[[ "" != "$PACKAGES" ]]
243235
244236
-
245-
name: Create-project with skeleton ^4
237+
name: Setup PHP 7.4
238+
uses: shivammathur/setup-php@v2
239+
with:
240+
coverage: "none"
241+
php-version: "7.4"
242+
243+
-
244+
name: Create-project with skeleton ^5
246245
if: "always() && steps.config.outcome == 'success'"
247246
run: |
248247
set -x
249-
composer create-project --ansi "symfony/skeleton:^4" v4
250-
cd v4
248+
php -v
249+
composer create-project --ansi "symfony/skeleton:^5" v5
250+
cd v5
251251
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
252252
composer config minimum-stability dev
253253
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
254254
composer require -W --ansi $PACKAGES
255255
EXIT_CODE=$?
256256
257257
if [[ EXIT_CODE -eq 2 ]]; then
258-
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 4\n#\n#\n#\n"
258+
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 5\n#\n#\n#\n"
259259
fi
260260
261261
exit $EXIT_CODE
262262
263263
-
264-
name: Create-project with skeleton ^5
264+
name: Setup PHP 8.1
265+
uses: shivammathur/setup-php@v2
266+
with:
267+
coverage: "none"
268+
php-version: "8.1"
269+
270+
-
271+
name: Create-project with skeleton ^6
265272
if: "always() && steps.config.outcome == 'success'"
266273
run: |
267274
set -x
268-
composer create-project --ansi "symfony/skeleton:^5" v5
269-
cd v5
275+
php -v
276+
composer create-project --ansi "symfony/skeleton:^6" v6
277+
cd v6
270278
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
271279
composer config minimum-stability dev
272280
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json

0 commit comments

Comments
 (0)