Skip to content

Commit d9d4ab6

Browse files
committed
[CI] Tweak getTargetSkeletonVersion and test over Symfony 7.4.0-BETA1 too
1 parent e53d538 commit d9d4ab6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci-linux.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ jobs:
5252
- php-version: '8.1'
5353
symfony-version: '6.4.*'
5454
dependency-versions: 'lowest'
55+
56+
# unreleased Symfony 7.4
57+
- php-version: '8.2'
58+
symfony-version: '^7.4.0-BETA1'
59+
dependency-versions: 'highest'
60+
61+
# unreleased Symfony 8.0
5562
- php-version: '8.4'
5663
symfony-version: '^8.0.0-BETA1'
5764
dependency-versions: 'highest'

src/Test/MakerTestEnvironment.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,13 @@ private function determineMissingDependencies(): array
406406

407407
public function getTargetSkeletonVersion(): ?string
408408
{
409-
return $_SERVER['SYMFONY_VERSION'] ?? '';
409+
$symfonyVersion = $_SERVER['SYMFONY_VERSION'] ?? '';
410+
411+
return match(true) {
412+
str_starts_with($symfonyVersion, '7.4.') && str_contains($symfonyVersion, 'BETA') => '7.4.x-dev',
413+
str_starts_with($symfonyVersion, '8.0.') && str_contains($symfonyVersion, 'BETA') => '8.0.x-dev',
414+
default => $symfonyVersion,
415+
};
410416
}
411417

412418
private function composerRequireMakerBundle(string $projectDirectory): void

0 commit comments

Comments
 (0)