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
2 changes: 1 addition & 1 deletion .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
php-version: '8.2'
tools: composer
extensions: intl, gd
coverage: none
coverage: xdebug

- name: Wait for Packagist to serve the new framework version
run: |
Expand Down
14 changes: 12 additions & 2 deletions tests/system/AutoReview/UpdateUpgradeGuideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testErrorWhenUpgradeGuideIsMissing(): void

public function testDryRunPrintsSectionsWithoutWriting(): void
{
$this->assertFileExists($this->upgradePath);
$this->skipIfUpgradeGuideIsMissing();

exec(sprintf('php ./admin/update-upgrade-guide.php %s --dry-run 2>&1', $this->nextVersion), $output, $exitCode);
$outputString = implode("\n", $output);
Expand All @@ -88,7 +88,7 @@ public function testDryRunPrintsSectionsWithoutWriting(): void

public function testUpdatesUpgradeGuide(): void
{
$this->assertFileExists($this->upgradePath);
$this->skipIfUpgradeGuideIsMissing();

if (trim((string) exec("git status --porcelain -- {$this->upgradePath}")) !== '') {
$this->markTestSkipped('You have uncommitted changes to the upgrade guide that will be erased by this test.');
Expand All @@ -110,4 +110,14 @@ public function testUpdatesUpgradeGuide(): void
exec("git restore -- {$this->upgradePath}");
}
}

private function skipIfUpgradeGuideIsMissing(): void
{
if (! is_file($this->upgradePath)) {
$this->markTestSkipped(sprintf(
'%s does not exist yet. It is created by "php admin/create-new-changelog.php" after a release.',
$this->upgradePath,
));
}
}
}
Loading