Skip to content

Commit f61eca2

Browse files
chore: add testrun for symfony 7 (#237)
* add testrun for symfony 7 * fix symfony flex setup --------- Co-authored-by: Christopher Georg <[email protected]>
1 parent 7831968 commit f61eca2

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

Diff for: .github/workflows/tests.yml

+11-20
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ jobs:
2525
tools: composer:v2
2626
coverage: none
2727

28-
- name: Require PHPSpec 7.1 dependencies
29-
run: |
30-
composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update
31-
composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
32-
if: "matrix.php == '8.1'"
33-
3428
- name: Install PHP dependencies
3529
run: composer update --prefer-dist --no-interaction --no-progress
3630

@@ -56,9 +50,7 @@ jobs:
5650
coverage: none
5751

5852
- name: Install dependencies
59-
run: |
60-
composer require "sebastian/comparator:^3.0.2" --no-interaction --no-update
61-
composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
53+
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
6254

6355
- name: Execute tests
6456
run: composer test
@@ -69,11 +61,13 @@ jobs:
6961
strategy:
7062
matrix:
7163
include:
72-
- symfony: '4'
64+
- symfony: '4.4.*'
7365
php-version: '7.1'
74-
- symfony: '5'
66+
- symfony: '5.4.*'
7567
php-version: '7.4'
76-
- symfony: '6'
68+
- symfony: '6.4.*'
69+
php-version: '8.2'
70+
- symfony: '7.0.*'
7771
php-version: '8.2'
7872

7973
steps:
@@ -87,16 +81,13 @@ jobs:
8781
tools: composer:v2
8882
coverage: none
8983

90-
- name: Pin old packages
91-
run: composer require "phpspec/phpspec:^2.5.8" --no-interaction --no-update
92-
if: "matrix.symfony == '2'"
93-
9484
- name: Install dependencies
85+
env:
86+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
9587
run: |
96-
composer config --no-plugins allow-plugins.symfony/flex true
97-
composer require --no-update --no-interaction --no-progress symfony/flex
98-
composer config extra.symfony.require ${{ matrix.symfony}}
99-
composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest --no-progress
88+
composer global config --no-plugins allow-plugins.symfony/flex true
89+
composer global require --no-progress --no-scripts --no-plugins symfony/flex
90+
composer update --prefer-dist --no-interaction --prefer-stable --no-progress
10091
10192
- name: Execute tests
10293
run: composer test

0 commit comments

Comments
 (0)