bezhanSalleh / filament-shield

The easiest and most intuitive way to add access management to your Filament Admin Resources, Pages & Widgets through `spatie/laravel-permission`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When using github action to test, the project trait HasPanelShield try to assign role to user in step of php artisan key:generate

soap opened this issue · comments

The problem is ServiceProvider was called during key:generate command, the trait try to assign role if panel_user role was enabled. But the migration was not run yet. So it failed the test.

If I diasble panel_user role before php artisan key:generate it is ok. But I have to enable it before testing using ENV variable.
image

Any suggestion for this issue? Thanks in advance.

hmm.. can you change the order of tests? other than this don't know much about testing apologies.