diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 0488b76a1a70..7d6d2d8da681 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -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: | diff --git a/tests/system/AutoReview/UpdateUpgradeGuideTest.php b/tests/system/AutoReview/UpdateUpgradeGuideTest.php index f982ac375dfa..bc7e2fc07cd3 100644 --- a/tests/system/AutoReview/UpdateUpgradeGuideTest.php +++ b/tests/system/AutoReview/UpdateUpgradeGuideTest.php @@ -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); @@ -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.'); @@ -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, + )); + } + } }