From the course: GitHub Actions for CI/CD
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
CI for JavaScript - GitHub Tutorial
From the course: GitHub Actions for CI/CD
CI for JavaScript
- [Narrator] Let's set up a CI workflow for a JavaScript project. If you're following along, you'll find the code I'm using for this video in the exercise files. We'll start by adding code to the repo and then selecting a continuous integration workflow for Node.js. Out of the box, we'll get a workflow that will check out code, set up Node, and then build and test the project using NPM, the Node Package Manager. As a bonus, we'll get a matrix strategy. This will automatically create copies of our workflow and run the integration steps using each version of Node defined in the matrix. This is great because it saves us some work but let's make one update to the matrix so our workflow will run smoothly. Because Node versions are published with long-term and short-term support, we need to make sure the versions in the matrix make sense for our project so we can improve the suggested workflow by removing any out-of-date…