diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 8b9912ad4cf..de338347c6c 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -85,9 +85,10 @@ jobs: run: vendor/bin/pest --coverage --coverage-clover clover.xml --log-junit report.xml - name: "Publish coverage report to Codecov" - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - functionalities: network + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true - name: Ping statistics server with test results run: | diff --git a/packages/framework/tests/Feature/SourceDirectoriesCanBeChangedTest.php b/packages/framework/tests/Feature/SourceDirectoriesCanBeChangedTest.php index 51bd2016184..5be594d3a8c 100644 --- a/packages/framework/tests/Feature/SourceDirectoriesCanBeChangedTest.php +++ b/packages/framework/tests/Feature/SourceDirectoriesCanBeChangedTest.php @@ -4,6 +4,7 @@ namespace Hyde\Framework\Testing\Feature; +use Illuminate\Support\Facades\File; use Hyde\Framework\HydeServiceProvider; use Hyde\Pages\BladePage; use Hyde\Pages\DocumentationPage; @@ -17,6 +18,13 @@ */ class SourceDirectoriesCanBeChangedTest extends TestCase { + public static function tearDownAfterClass(): void + { + parent::tearDownAfterClass(); + + File::deleteDirectory('_source'); + } + public function testBaselines() { $this->assertEquals('_pages', HtmlPage::sourceDirectory());