Central hub for reusable workflow and other files for WordPress VIP plugins.
MIT License
Central hub for reusable workflows and similarly common files for WordPress VIP plugins.
This repository contains:
.editorconfig
, or GitHub Workflow files that reference the reusable workflow files.Previously, workflows across 10+ repositories would all need updating when a new version of PHP, or GitHub Action was available.
Having the common workflows in one location means that they can be updated far more easily, and the repos have a consistency that they would otherwise be missing. The process of syncing the standalone files, such as "local" workflows, also avoids having to update individual repositories to get them using the centralized code.
Hopefully not! As an example, not all of the WordPress VIP plugins use Behat for functional tests - but the reusable workflows include checks to see if the individual repo has some key config files (such as composer.json
and behat.yml
), and the workflow won't run if they aren't found. Repeat for .phpcs.xml.dist
, phpunit.xml.dist
and so on.
You don't - there's nothing to install, and it's only used to communicate with other repositories.
Three steps are needed:
Once committed and pushed, this will trigger the sync workflow to start and the new repository will be updated.
The WP-CLI organization has a central set of resusable workflows and synchronization workflows, so all credit goes to the WP-CLI maintainers and whoever they got the idea from.