filamentphp/plugin-skeleton workflow test jobs failing (after fixing some errors)
Hi! I'm new to plugin development. I used the template and after fixing some things (like removing the unused spatie services and changing the non-existent Icon class) the test workflow on Github is still mostly failing.
The only succesful workflow job is P8.2 - L10.* - prefer-stable - ubuntu-latest. The error I seem to be getting after the command vendor/bin/pest --ci:
How do I fix this one and get all jobs working?
The only succesful workflow job is P8.2 - L10.* - prefer-stable - ubuntu-latest. The error I seem to be getting after the command vendor/bin/pest --ci:
How do I fix this one and get all jobs working?
Solution
I managed to get it working, the
instance() function was added in phpunit version 10.0.17. Just add this: "phpunit/phpunit": "^10.0.17", to your require-dev in composer.json