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:
Checkout our codebase using the actions/checkout@v3 action.
Install the specified Node.js version using the actions/setup-node@v3 action.
Install dependencies using the npm install command (which has the post-install side effect of build launch npm run build).
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!
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:
npm run build
).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!