Skip to content
Merged
Show file tree
Hide file tree
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
33 changes: 13 additions & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: build

on:
push:
branches:
- master
pull_request: ~
push: ~

jobs:
phpstan:
Expand Down Expand Up @@ -33,22 +35,22 @@ jobs:
fail-fast: false
matrix:
include:
- description: 'Symfony 6.4'
- description: 'Symfony 6.0'
php: '8.1'
composer_option: '--prefer-lowest'
max_deprecations: 0
- description: 'Symfony 6.4'
php: '8.2'
symfony: 6.3.*
symfony: 6.4.*
max_deprecations: 0
- description: 'Symfony 7.1'
- description: 'Symfony 7.3'
php: '8.3'
symfony: 7.1.*
symfony: 7.3.*
max_deprecations: 0
- description: 'Symfony 7.2'
- description: 'Symfony 8.0'
php: '8.4'
symfony: 7.2.*
max_deprecations: 1
symfony: 8.0.*@dev
max_deprecations: 0
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
Expand All @@ -66,21 +68,12 @@ jobs:
composer config minimum-stability dev
composer config prefer-stable true
if: contains(matrix.symfony, '@dev')
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: |
sed -ri 's/"symfony\/(config|dependency-injection|form|http-kernel|validator)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=clover.xml
run: vendor/bin/phpunit --colors=always --coverage-clover=clover.xml
env:
SYMFONY_DEPRECATIONS_HELPER: max[self]=${{matrix.max_deprecations}}
- name: Code Climate Test Reporter
uses: aktions/codeclimate-test-reporter@v1
if: ${{ github.event_name != 'pull_request' && matrix.php == '8.4' }}
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build --coverage-input-type clover
- uses: codecov/codecov-action@v1
with:
files: ./clover.xml
SYMFONY_DEPRECATIONS_HELPER: max[self]=${{matrix.max_deprecations}}

12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"require": {
"php": "^8.1",
"google/recaptcha": "^1.3",
"symfony/config": "^6.0 || ^7.0",
"symfony/dependency-injection": "^6.0 || ^7.0",
"symfony/form": "^6.0 || ^7.0",
"symfony/http-kernel": "^6.0 || ^7.0",
"symfony/validator": "^6.0 || ^7.0"
"symfony/config": "^6.0 || ^7.0 || ^8.0",
"symfony/dependency-injection": "^6.0 || ^7.0 || ^8.0",
"symfony/form": "^6.0 || ^7.0 || ^8.0",
"symfony/http-kernel": "^6.0 || ^7.0 || ^8.0",
"symfony/validator": "^6.0 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"symfony/http-client-contracts": "^3.5",
"symfony/phpunit-bridge": "^7.2"
"symfony/phpunit-bridge": "^7.3"
},
"suggest": {
"symfony/twig-bundle": "To render widget. Minimum supported Twig version is 2.4"
Expand Down