Skip to content

Commit 86c89d5

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

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/ci-linux.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ 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-RC2'
59+
dependency-versions: 'highest'
60+
61+
# unreleased Symfony 8.0
5562
- php-version: '8.4'
56-
symfony-version: '^8.0.0-BETA1'
63+
symfony-version: '^8.0.0-RC2'
5764
dependency-versions: 'highest'
5865

5966
steps:

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, 'RC') => '7.4.x-dev',
413+
str_starts_with($symfonyVersion, '^8.0.') && str_contains($symfonyVersion, 'RC') => '8.0.x-dev',
414+
default => $symfonyVersion,
415+
};
410416
}
411417

412418
private function composerRequireMakerBundle(string $projectDirectory): void

0 commit comments

Comments
 (0)