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
32 changes: 7 additions & 25 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,27 @@ jobs:
fail-fast: false
matrix:
include:
- php-version: '8.0'
coverage: false
dependency-versions: 'lowest'
phpunit-config: 'phpunit-9.xml.dist'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.1'
coverage: false
dependency-versions: 'highest'
phpunit-config: 'phpunit-9.xml.dist'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.2'
coverage: true
dependency-versions: 'highest'
phpunit-config: 'phpunit.xml.dist'
dependency-versions: 'lowest'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.3'
coverage: false
dependency-versions: 'highest'
phpunit-config: 'phpunit.xml.dist'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.4'
coverage: false
dependency-versions: 'highest'
phpunit-config: 'phpunit.xml.dist'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.5'
coverage: true
dependency-versions: 'highest'
phpunit-config: 'phpunit.xml.dist'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

Expand All @@ -72,7 +54,7 @@ jobs:

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Install and configure PHP
uses: shivammathur/setup-php@v2
Expand All @@ -87,7 +69,7 @@ jobs:
run: composer remove "*php-cs-fixer*" "*phpstan*" "*rector*" --dev --no-update

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependency-versions }}
composer-options: ${{ matrix.composer-options }}
Expand All @@ -97,7 +79,7 @@ jobs:

- name: Execute test cases
if: matrix.coverage == false
run: composer test -- --configuration=${{ matrix.phpunit-config }}
run: composer test

- name: Execute test cases with coverage
if: ${{ matrix.coverage }}
Expand All @@ -113,16 +95,16 @@ jobs:

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Install and configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: ctype, iconv, mysql

- name: Install composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v3
with:
dependency-versions: highest

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"type": "sulu-bundle",
"require": {
"php": "8.0.* || 8.1.* || 8.2.* || 8.3.* || 8.4.* || 8.5.*",
"php": "8.2.* || 8.3.* || 8.4.* || 8.5.*",
"doctrine/dbal": "^2.13 || ^3.0 || ^4.0",
"doctrine/doctrine-bundle": "^2.5 || ^3.1",
"doctrine/orm": "^2.11 || ^3.0",
Expand All @@ -30,7 +30,7 @@
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^9.5 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
"phpunit/phpunit": "^11.5 || ^12.5 || ^13.0",
"qossmic/deptrac-shim": "^0.24.0 || ^1.0",
"rector/rector": "^2.0",
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0 || ^8.0",
Expand Down
1 change: 0 additions & 1 deletion tests/Application/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function registerBundles(): iterable
];

foreach ($bundles as $class => $envs) {
// @phpstan-ignore-next-line offsetAccess.invalidOffset
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
yield new $class();
}
Expand Down