Skip to content

Commit 373fee1

Browse files
committed
Remove Twig 2.x from CI matrix
Twig 2.x is EOL and all versions are blocked by Composer security advisories, making the test matrix impossible to run. Simplified the workflow to use modern Symfony Flex configuration.
1 parent c0c1c20 commit 373fee1

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ on:
1313
jobs:
1414
tests:
1515
runs-on: ubuntu-latest
16-
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Twig ${{ matrix.twig }}"
16+
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
php: ["8.1", "8.2", "8.3"]
2121
symfony: ["^5.4", "^6.4", "^7.0"]
22-
twig: ["^2.12", "^3.3"]
2322
exclude:
24-
- twig: "^2.12"
25-
symfony: "^7.0"
2623
- php: "8.1"
2724
symfony: "^7.0"
2825

@@ -36,22 +33,15 @@ jobs:
3633
with:
3734
php-version: "${{ matrix.php }}"
3835
coverage: none
36+
tools: 'composer:v2, flex'
3937

4038
-
4139
name: Restrict Symfony version
4240
if: matrix.symfony != ''
4341
run: |
44-
composer global config --no-plugins allow-plugins.symfony/flex true
45-
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
4642
composer config extra.symfony.require "${{ matrix.symfony }}"
4743
(cd src/Component && composer config extra.symfony.require "${{ matrix.symfony }}")
4844
49-
-
50-
name: Restrict Twig version
51-
if: matrix.twig != ''
52-
run: |
53-
composer require "twig/twig:${{ matrix.twig }}" --no-update --no-scripts
54-
5545
-
5646
name: Install dependencies
5747
run: |

0 commit comments

Comments
 (0)