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 · 1 comments
soap commented
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.
Any suggestion for this issue? Thanks in advance.
bezhanSalleh commented
hmm.. can you change the order of tests? other than this don't know much about testing apologies.