Skip to content

Commit

Permalink
Trying to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mchev committed May 24, 2024
1 parent fc5f1e4 commit a174a0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,5 @@ jobs:
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress
- name: Publish migrations
run: |
php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="banhammer-migrations" --force
- name: Execute tests
run: vendor/bin/phpunit
11 changes: 11 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,15 @@ protected function getPackageProviders($app): array
'Mchev\Banhammer\BanhammerServiceProvider',
];
}

/**
* run package database migrations.
*/
protected function setUp(): void
{
parent::setUp();
$this->loadMigrationsFrom(__DIR__ . '/migrations');
$this->loadMigrationsFrom(dirname(__DIR__) . '/migrations');
}

}

0 comments on commit a174a0f

Please sign in to comment.