Testing WordPress plugins using Forgejo Actions
Preface: Almost all public WordPress plugin development takes place on GitHub. We also collaborate on GitHub. However, we want to use and promote free alternatives for our own project. We currently host our own forgejo instance, but have been thinking about moving our repositories to @Codeberg, where we are more likely to find contributors and bug reports until the forgejo federation is more mature.
Automated Testing Workflows: It took us a long time to set up working workflows that run integrations tests with WordPress and the WordPress ActivityPub-plugin within Forgejo Actions using the Forgejo-Runner. Copy pasting the GitHub Actions workflow from for instance the ActivityPub plugin was just the beginning of an almost ten hour long debugging session. But now the tests are working.
But there is still room for improvement: we could not get the caching of the forgejo runner (@forgejo) to work, and had problems with temporary folders being partially deleted between runs. I am trying to report this on the issue board. But in any case, any advice would be greatly appreciated!
#ForgejoActions #ForgejoRunner #Forgejo #PHPCS #PHPUnit #WordPress