Skip to content

Commit 99200d4

Browse files
committed
⬆️ allow Symfony 8
1 parent a44d1ca commit 99200d4

File tree

3 files changed

+22
-32
lines changed

3 files changed

+22
-32
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: build
22

33
on:
4+
push:
5+
branches:
6+
- master
47
pull_request: ~
5-
push: ~
68

79
jobs:
810
phpstan:
@@ -33,22 +35,22 @@ jobs:
3335
fail-fast: false
3436
matrix:
3537
include:
36-
- description: 'Symfony 6.4'
38+
- description: 'Symfony 6.0'
3739
php: '8.1'
3840
composer_option: '--prefer-lowest'
3941
max_deprecations: 0
4042
- description: 'Symfony 6.4'
4143
php: '8.2'
42-
symfony: 6.3.*
44+
symfony: 6.4.*
4345
max_deprecations: 0
44-
- description: 'Symfony 7.1'
46+
- description: 'Symfony 7.3'
4547
php: '8.3'
46-
symfony: 7.1.*
48+
symfony: 7.3.*
4749
max_deprecations: 0
48-
- description: 'Symfony 7.2'
50+
- description: 'Symfony 8.0'
4951
php: '8.4'
50-
symfony: 7.2.*
51-
max_deprecations: 1
52+
symfony: 8.0.*@dev
53+
max_deprecations: 0
5254
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
5355
steps:
5456
- name: Checkout
@@ -66,21 +68,12 @@ jobs:
6668
composer config minimum-stability dev
6769
composer config prefer-stable true
6870
if: contains(matrix.symfony, '@dev')
69-
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
7071
- run: |
7172
sed -ri 's/"symfony\/(config|dependency-injection|form|http-kernel|validator)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
7273
if: matrix.symfony
7374
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
7475
- name: Run tests
75-
run: vendor/bin/phpunit --coverage-clover=clover.xml
76+
run: vendor/bin/phpunit --colors=always --coverage-clover coverage.xml
7677
env:
77-
SYMFONY_DEPRECATIONS_HELPER: max[self]=${{matrix.max_deprecations}}
78-
- name: Code Climate Test Reporter
79-
uses: aktions/codeclimate-test-reporter@v1
80-
if: ${{ github.event_name != 'pull_request' && matrix.php == '8.4' }}
81-
with:
82-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
83-
command: after-build --coverage-input-type clover
84-
- uses: codecov/codecov-action@v1
85-
with:
86-
files: ./clover.xml
78+
SYMFONY_DEPRECATIONS_HELPER: max[self]=${{matrix.max_deprecations}}
79+

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"require": {
1919
"php": "^8.1",
2020
"google/recaptcha": "^1.3",
21-
"symfony/config": "^6.0 || ^7.0",
22-
"symfony/dependency-injection": "^6.0 || ^7.0",
23-
"symfony/form": "^6.0 || ^7.0",
24-
"symfony/http-kernel": "^6.0 || ^7.0",
25-
"symfony/validator": "^6.0 || ^7.0"
21+
"symfony/config": "^6.0 || ^7.0 || ^8.0",
22+
"symfony/dependency-injection": "^6.0 || ^7.0 || ^8.0",
23+
"symfony/form": "^6.0 || ^7.0 || ^8.0",
24+
"symfony/http-kernel": "^6.0 || ^7.0 || ^8.0",
25+
"symfony/validator": "^6.0 || ^7.0 || ^8.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^9.6",
28+
"phpunit/phpunit": "^10.5",
2929
"symfony/http-client-contracts": "^3.5",
30-
"symfony/phpunit-bridge": "^7.2"
30+
"symfony/phpunit-bridge": "^7.3"
3131
},
3232
"suggest": {
3333
"symfony/twig-bundle": "To render widget. Minimum supported Twig version is 2.4"

phpunit.xml.dist

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
colors="true"
4-
convertErrorsToExceptions="true"
5-
convertNoticesToExceptions="true"
6-
convertWarningsToExceptions="true"
74
beStrictAboutTestsThatDoNotTestAnything="false"
85
bootstrap="vendor/autoload.php"
96
>
@@ -13,9 +10,9 @@
1310
</testsuite>
1411
</testsuites>
1512

16-
<coverage>
13+
<source>
1714
<include>
1815
<directory>src</directory>
1916
</include>
20-
</coverage>
17+
</source>
2118
</phpunit>

0 commit comments

Comments
 (0)