diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec8b900a..be013226 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,8 @@ jobs: with: node-version: 20 cache: 'npm' + - run: composer remove laravel/folio --dev --no-update --no-interaction + if: matrix.laravel == 9 - run: composer require laravel/framework:"${{ matrix.laravel }}.*" --no-update --no-interaction - uses: ramsey/composer-install@v2 with: diff --git a/tests/Unit/FolioTest.php b/tests/Unit/FolioTest.php index e85d7ce3..d2dd47f8 100644 --- a/tests/Unit/FolioTest.php +++ b/tests/Unit/FolioTest.php @@ -12,6 +12,15 @@ class FolioTest extends TestCase { + protected function setUp(): void + { + parent::setUp(); + + if ((int) head(explode('.', app()->version())) < 10) { + $this->markTestSkipped('Folio requires Laravel >=10'); + } + } + protected function tearDown(): void { File::deleteDirectories(resource_path('views'));