Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
soap opened this issue May 8, 2024 · 1 comment

Comments

@soap
Copy link

soap commented May 8, 2024

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.

@bezhanSalleh
Copy link
Owner

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

@bezhanSalleh bezhanSalleh closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants