Skip to content

Commit 9c4722a

Browse files
authored
fix(ci): Remove PHP 7.4 and update to single PHP 8.2 setup (#144)
1 parent 118d03a commit 9c4722a

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

.github/workflows/callable-qa.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ on:
1313
find_yaml:
1414
required: false
1515
type: string
16-
skeleton_74:
16+
skeleton_81:
1717
required: false
1818
default: symfony/skeleton
1919
type: string
20-
skeleton_74_version:
20+
skeleton_81_version:
2121
required: false
22-
default: ^5
22+
default: ^6
2323
type: string
24-
skeleton_81:
24+
skeleton_82:
2525
required: false
2626
default: symfony/skeleton
2727
type: string
28-
skeleton_81_version:
28+
skeleton_82_version:
2929
required: false
30-
default: ^6
30+
default: ^7
3131
type: string
3232
secrets:
3333
token:
@@ -257,50 +257,57 @@ jobs:
257257
[[ "" != "$PACKAGES" ]]
258258
259259
-
260-
name: Setup PHP 7.4
260+
name: Setup PHP 8.1
261261
if: "always() && steps.config.outcome == 'success'"
262262
uses: shivammathur/setup-php@v2
263263
with:
264264
coverage: "none"
265-
php-version: "7.4"
265+
php-version: "8.1"
266266

267267
-
268-
name: Create-project with skeleton ^5
268+
name: Create-project with skeleton ^6
269269
if: "always() && steps.config.outcome == 'success'"
270270
run: |
271271
set -x
272272
php -v
273-
composer create-project --ansi "${{ inputs.skeleton_74 }}:${{ inputs.skeleton_74_version }}" --stability dev skeleton_74
274-
cd skeleton_74
273+
composer create-project --ansi "${{ inputs.skeleton_81 }}:${{ inputs.skeleton_81_version }}" --stability dev skeleton_81
274+
cd skeleton_81
275275
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
276276
composer config minimum-stability dev
277277
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
278278
composer require -W --ansi $PACKAGES
279279
EXIT_CODE=$?
280280
281281
if [[ EXIT_CODE -eq 2 ]]; then
282-
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 5\n#\n#\n#\n"
282+
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 6\n#\n#\n#\n"
283283
fi
284284
285285
exit $EXIT_CODE
286286
287287
-
288-
name: Setup PHP 8.1
288+
name: Setup PHP 8.2
289289
if: "always() && steps.config.outcome == 'success'"
290290
uses: shivammathur/setup-php@v2
291291
with:
292292
coverage: "none"
293-
php-version: "8.1"
293+
php-version: "8.2"
294294

295295
-
296-
name: Create-project with skeleton ^6
296+
name: Create-project with skeleton ^7
297297
if: "always() && steps.config.outcome == 'success'"
298298
run: |
299299
set -x
300300
php -v
301-
composer create-project --ansi "${{ inputs.skeleton_81 }}:${{ inputs.skeleton_81_version }}" --stability dev skeleton_81
302-
cd skeleton_81
301+
composer create-project --ansi "${{ inputs.skeleton_82 }}:${{ inputs.skeleton_82_version }}" --stability dev skeleton_82
302+
cd skeleton_82
303303
composer config extra.symfony.allow-contrib ${{ inputs.contrib && 'true' || 'false' }}
304304
composer config minimum-stability dev
305305
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json
306306
composer require -W --ansi $PACKAGES
307+
EXIT_CODE=$?
308+
309+
if [[ EXIT_CODE -eq 2 ]]; then
310+
echo -e "\n#\n#\n# You can ignore this error if your package does not support Symfony 7\n#\n#\n#\n"
311+
fi
312+
313+
exit $EXIT_CODE

.github/workflows/callable-watch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up PHP
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: 8.1
25+
php-version: 8.2
2626
coverage: none
2727

2828
- name: Checkout code

0 commit comments

Comments
 (0)