Skip to content

Commit 4ca858f

Browse files
committed
feat: drop support for php < 8.1,
drop support for symfony < 5.4,
1 parent 5dd5e1b commit 4ca858f

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

Diff for: .github/workflows/static.yml

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
- name: Remove phpspec
19-
run: composer remove --dev friends-of-phpspec/phpspec-code-coverage phpspec/phpspec
20-
2118
- name: PHPStan
2219
uses: docker://oskarstark/phpstan-ga
2320
env:

Diff for: .github/workflows/tests.yml

+15-26
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v3
2020

2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
@@ -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

@@ -42,11 +36,11 @@ jobs:
4236
runs-on: ubuntu-latest
4337
strategy:
4438
matrix:
45-
php: ['7.1', '7.4', '8.2']
39+
php: ['8.1']
4640

4741
steps:
4842
- name: Checkout code
49-
uses: actions/checkout@v4
43+
uses: actions/checkout@v3
5044

5145
- name: Setup PHP
5246
uses: shivammathur/setup-php@v2
@@ -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,16 +61,16 @@ jobs:
6961
strategy:
7062
matrix:
7163
include:
72-
- symfony: '5'
64+
- symfony: '5.4.*'
7365
php-version: '8.1'
74-
- symfony: '6'
66+
- symfony: '6.4.*'
67+
php-version: '8.2'
68+
- symfony: '7.0.*'
7569
php-version: '8.2'
76-
- symfony: '7'
77-
php-version: '8.3'
7870

7971
steps:
8072
- name: Checkout code
81-
uses: actions/checkout@v4
73+
uses: actions/checkout@v3
8274

8375
- name: Setup PHP
8476
uses: shivammathur/setup-php@v2
@@ -87,16 +79,13 @@ jobs:
8779
tools: composer:v2
8880
coverage: none
8981

90-
- name: Pin old packages
91-
run: composer require "phpspec/phpspec:^2.5.8" --no-interaction --no-update
92-
if: "matrix.symfony == '2'"
93-
9482
- name: Install dependencies
83+
env:
84+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
9585
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
86+
composer global config --no-plugins allow-plugins.symfony/flex true
87+
composer global require --no-progress --no-scripts --no-plugins symfony/flex
88+
composer update --prefer-dist --no-interaction --prefer-stable --no-progress
10089
10190
- name: Execute tests
10291
run: composer test
@@ -107,7 +96,7 @@ jobs:
10796

10897
steps:
10998
- name: Checkout code
110-
uses: actions/checkout@v4
99+
uses: actions/checkout@v3
111100

112101
- name: Setup PHP
113102
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)