Skip to content

Commit

Permalink
Uninstall Folio and skip tests on Laravel <10
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Mar 20, 2024
1 parent 62f0f50 commit 8b947e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions tests/Unit/ZiggyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ protected function setUp(): void
{
parent::setUp();

if ((int) head(explode('.', app()->version())) < 10) {
$this->markTestSkipped('Folio requires Laravel >=10');
}

$router = app('router');

$router->get('home', $this->noop())->name('home');
Expand Down

0 comments on commit 8b947e8

Please sign in to comment.