Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add testrun for symfony 7 #237

Merged
merged 4 commits into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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