WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
791 stars 114 forks source link

New CI Workflow for Multiple Node Versions and Multiple OS Checks #234

Closed erikyo closed 1 year ago

erikyo commented 1 year ago

I'm excited to share with you the updates I made to our CI workflow. I've added a new check that ensures our plugin builds and runs successfully across multiple Node.js versions and operating systems.

To accomplish this, I've added a new matrix strategy to the node-build job in our build.yml file. The matrix strategy allows us to run multiple builds in parallel, each with a different set of variables.

The new matrix strategy includes the following variables:

node-version: [16.x, 18.x, 20.x], which specifies the Node.js versions to use for each build. os: [ubuntu-latest, macos-latest, windows-latest], which specifies the operating systems to use for each build.

By adding these variables, we can now ensure that our plugin builds and runs successfully across multiple Node.js versions and operating systems. This helps us catch any compatibility issues early and ensure our plugin works seamlessly for all users.

To implement this, I've updated the node-build job with the following steps:

Our CI system will now run these tests automatically for every pull request and commit to our main branch. While I have not tested this new workflow locally, I have thoroughly tested it on our CI system to ensure that it works as expected.

I would appreciate it if you could review my changes and test them on your end to ensure they work as expected. Thank you for your time and consideration!

Mte90 commented 1 year ago

Cool!