Skip to content

Commit

Permalink
feat: drop support for php < 8.1,
Browse files Browse the repository at this point in the history
drop support for symfony < 5.4,
  • Loading branch information
Chris8934 committed Jan 22, 2024
1 parent 5dd5e1b commit 4ca858f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Remove phpspec
run: composer remove --dev friends-of-phpspec/phpspec-code-coverage phpspec/phpspec

- name: PHPStan
uses: docker://oskarstark/phpstan-ga
env:
Expand Down
41 changes: 15 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -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 @@ -42,11 +36,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.1', '7.4', '8.2']
php: ['8.1']

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
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,16 +61,16 @@ jobs:
strategy:
matrix:
include:
- symfony: '5'
- symfony: '5.4.*'
php-version: '8.1'
- symfony: '6'
- symfony: '6.4.*'
php-version: '8.2'
- symfony: '7.0.*'
php-version: '8.2'
- symfony: '7'
php-version: '8.3'

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -87,16 +79,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 All @@ -107,7 +96,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit 4ca858f

Please sign in to comment.