Skip to content

Commit

Permalink
Symfony 7.0 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TavoNiievez committed Jan 11, 2024
1 parent 7e5f274 commit 59024c2
Show file tree
Hide file tree
Showing 69 changed files with 1,173 additions and 1,641 deletions.
5 changes: 2 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=ad5e9ed11ff896949f234ec07bc075bf
APP_SECRET=c39972d23278f52101c810eea7d5a512
###< symfony/framework-bundle ###

###> app ###
BUSINESS_SHORTNAME=
BUSINESS_FULLNAME=
BUSINESS_NAME=Codeception
###< app ###

###> doctrine/doctrine-bundle ###
Expand Down
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ APP_ENV=test
APP_SECRET='$ecretf0rt3st'
DATABASE_URL=sqlite:///%kernel.project_dir%/var/test.db3
KERNEL_CLASS='App\Kernel'
SYMFONY_DEPRECATIONS_HELPER=999999
MAILER_DSN=null://null
MAILER_DSN=null://null
SYMFONY_DEPRECATIONS_HELPER=999999
12 changes: 6 additions & 6 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: CI
on:
push:
branches:
- '6.4'
- '7.0'
pull_request:
branches:
- '6.4'
- '7.0'

env:
APP_ENV: test

jobs:
symfony:
name: Symfony 6.4 (PHP ${{ matrix.php-versions }})
name: Symfony 7.0 (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -50,10 +50,10 @@ jobs:
run: composer install --no-progress

- name: Update database schema
run: php bin/console d:s:u -f
run: php bin/console doctrine:schema:update --force

- name: Load Doctrine fixtures
run: php bin/console d:f:l -q
run: php bin/console doctrine:fixtures:load --quiet

- name: Run functional tests
run: vendor/bin/codecept run Functional
11 changes: 6 additions & 5 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
namespace: App\Tests
support_namespace: Support
paths:
tests: tests
support: tests/_build/support
data: tests/_build/data
envs: tests/_build/envs
output: tests/_build/output
output: tests/_output
data: tests/Support/Data
support: tests/Support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
Expand All @@ -15,4 +16,4 @@ params:
settings:
shuffle: true
colors: true
report_useless_tests: true
report_useless_tests: true
68 changes: 31 additions & 37 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,46 @@
"homepage": "https://medium.com/@ganieves"
}
],
"minimum-stability": "RC",
"require": {
"php": ">=8.1.0",
"php": ">=8.2.0",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/annotations": "^2.0",
"doctrine/doctrine-bundle": "^2.6",
"doctrine/doctrine-bundle": "^2.11",
"symfony/apache-pack": "^1.0",
"symfony/console": "6.4.*",
"symfony/dotenv": "6.4.*",
"symfony/flex": "^2.1",
"symfony/form": "6.4.*",
"symfony/framework-bundle": "6.4.*",
"symfony/mailer": "6.4.*",
"symfony/runtime": "6.4.*",
"symfony/security-bundle": "6.4.*",
"symfony/translation": "6.4.*",
"symfony/validator": "6.4.*",
"symfony/yaml": "6.4.*"
"symfony/console": "7.0.*",
"symfony/dotenv": "7.0.*",
"symfony/flex": "^2.4",
"symfony/form": "7.0.*",
"symfony/framework-bundle": "7.0.*",
"symfony/mailer": "7.0.*",
"symfony/runtime": "7.0.*",
"symfony/security-bundle": "7.0.*",
"symfony/translation": "7.0.*",
"symfony/validator": "7.0.*",
"symfony/yaml": "7.0.*"
},
"require-dev": {
"codeception/codeception": "^5.0.0",
"codeception/codeception": "^5.0.8",
"codeception/module-asserts": "^3.0",
"codeception/module-doctrine2": "^3.0",
"codeception/module-phpbrowser": "^3.0",
"codeception/module-symfony": "^3.0 | *@dev",
"doctrine/doctrine-fixtures-bundle": "^3.4.2",
"friendsofphp/php-cs-fixer": "^3.3",
"phpmd/phpmd": "^2.11",
"codeception/module-symfony": "^3.2 | *@dev",
"doctrine/doctrine-fixtures-bundle": "^3.5",
"friendsofphp/php-cs-fixer": "^3.46",
"phpmd/phpmd": "^2.15",
"phpstan/phpdoc-parser": "^1.25",
"phpunit/phpunit": "^10.0",
"rector/rector": "^0.12.5",
"squizlabs/php_codesniffer": "^3.6",
"symfony/debug-bundle": "6.4.*",
"symfony/maker-bundle": "^1.41",
"symfony/twig-bundle": "6.4.*",
"symfony/var-dumper": "6.4.*",
"symfony/web-profiler-bundle": "6.4.*",
"vlucas/phpdotenv": "^5.4"
"rector/rector": "^0.18.13",
"squizlabs/php_codesniffer": "^3.8",
"symfony/debug-bundle": "7.0.*",
"symfony/maker-bundle": "^1.52",
"symfony/twig-bundle": "7.0.*",
"symfony/var-dumper": "7.0.*",
"symfony/web-profiler-bundle": "7.0.*",
"vlucas/phpdotenv": "^5.6"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"php-http/discovery": true,
"symfony/flex": true,
"symfony/runtime": true
Expand All @@ -61,7 +59,7 @@
},
"sort-packages": true,
"platform": {
"php": "8.1.0"
"php": "8.2.0"
}
},
"autoload": {
Expand All @@ -70,9 +68,6 @@
}
},
"autoload-dev": {
"classmap": [
"tests/_build/support"
],
"psr-4": {
"App\\Tests\\": "tests/"
}
Expand All @@ -84,7 +79,8 @@
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*"
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*"
},
"scripts": {
"auto-scripts": {
Expand All @@ -97,8 +93,6 @@
"@psalm"
],
"test": "vendor/bin/codecept run --colors",
"psalm": "vendor/bin/psalm --no-cache",
"rector": "vendor/bin/rector process src -c rector.php --no-progress-bar -n",
"post-install-cmd": [
"@auto-scripts"
],
Expand All @@ -116,7 +110,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "6.4.*"
"require": "7.0.*"
}
}
}
Loading

0 comments on commit 59024c2

Please sign in to comment.