Skip to content

Commit

Permalink
chore: add testrun for symfony 7 (#237)
Browse files Browse the repository at this point in the history
* add testrun for symfony 7
* fix symfony flex setup
---------

Co-authored-by: Christopher Georg <[email protected]>
  • Loading branch information
Chris53897 and Chris8934 committed Jan 23, 2024
1 parent 7831968 commit f61eca2
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
tools: composer:v2
coverage: none

- name: Require PHPSpec 7.1 dependencies
run: |
composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php
if: "matrix.php == '8.1'"

- name: Install PHP dependencies
run: composer update --prefer-dist --no-interaction --no-progress

Expand All @@ -56,9 +50,7 @@ jobs:
coverage: none

- name: Install dependencies
run: |
composer require "sebastian/comparator:^3.0.2" --no-interaction --no-update
composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress

- name: Execute tests
run: composer test
Expand All @@ -69,11 +61,13 @@ jobs:
strategy:
matrix:
include:
- symfony: '4'
- symfony: '4.4.*'
php-version: '7.1'
- symfony: '5'
- symfony: '5.4.*'
php-version: '7.4'
- symfony: '6'
- symfony: '6.4.*'
php-version: '8.2'
- symfony: '7.0.*'
php-version: '8.2'

steps:
Expand All @@ -87,16 +81,13 @@ jobs:
tools: composer:v2
coverage: none

- name: Pin old packages
run: composer require "phpspec/phpspec:^2.5.8" --no-interaction --no-update
if: "matrix.symfony == '2'"

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
run: |
composer config --no-plugins allow-plugins.symfony/flex true
composer require --no-update --no-interaction --no-progress symfony/flex
composer config extra.symfony.require ${{ matrix.symfony}}
composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest --no-progress
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --prefer-dist --no-interaction --prefer-stable --no-progress
- name: Execute tests
run: composer test
Expand Down

0 comments on commit f61eca2

Please sign in to comment.