Skip to content

Commit 0b83dd9

Browse files
authored
Merge pull request #65 from Bee-Lab/sf8
⬆️ allow Symfony 8
2 parents a44d1ca + 411057e commit 0b83dd9

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
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=clover.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: 6 additions & 6 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": {
2828
"phpunit/phpunit": "^9.6",
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"

0 commit comments

Comments
 (0)