-
Notifications
You must be signed in to change notification settings - Fork 4
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
May plugin activation be required? #61
Comments
Heya, thanks for opening this! No, plugin activation is not required. Plugin Check performs two kinds of checks:
So to answer your question:
Yes, these plugins are testable. You should not need to do anything special to make it work. I think what you might be running into is WordPress/plugin-check#234 If you manually install the Plugin Check plugin on a development site and run it against GatherPress, are you getting the same database errors? I'll try to reproduce this as well on my end with just the plugin. |
Hmm when I'm running In any case, the GitHub action is still working fine for you and there's no error, so not really urgent to look into it imho :) |
Hi, with the new WP 6.5 and dependencies I'm getting an error of a plugin that depends of another.
And with this, the test fails. Maybe the action could check the plugin dependencies and activate them also, it's probably |
@pedro-mendonca Mind creating a new issue for that? It's really separate and I am basically about to close this one. It's a great question though! Do you have a sample repo you could point me to? I might add a WP-CLI is a good point as well and WP-CLI will soon gain these capabilities. But in the meantime we'll have to sort this out ourselves. Even if that means writing some hacky code to find the dependencies. |
Sure, I'll create another issue, I'm sorry I thought it might be related :) |
I have to circle back on this one: Plugin activation is not required for static checks, but it is required for runtime checks. So turns out I was not doing the latter here, which means the runtime checks were simply not running. But that's not a big deal, the rest is still working even without plugin activation. |
Fixed in #67 |
Hallo @swissspidy I'm sorry you had to deal with all this on your own. I for sure wanted to come back to you earlier. I haven't even looked into your changes yet. But great, you did. Will jump right into it now! Thanks. |
Cool. Happy to see your changes touched the lines 108ff. and I was not that wrong. Thank you very much for your detailed explanation and the fast solution @swissspidy! |
Hello @swissspidy !
I suggested using this cool action for GatherPress, but we ran into a subtle problem during the first run, unfortunately.
While @mauteri suggested to call
wp plugin activate gatherpress
from within our workflow, I think it might be needed to this on the wp-plugin-check-action itself?Probably somewhere around here, between 108 and 109:
https://github.com/swissspidy/wp-plugin-check-action/blob/8ee6b81574b78daa89c1487b5e3e2337b03dbf29/action.yml#L108-L109
May I be wrong? What is the expectated behaviour with plugins that make use of the activation hook AND create custom tables? Are such plugins - in theory - testable with the action?
The text was updated successfully, but these errors were encountered: