From the course: Advanced GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Run a job with a matrix strategy - GitHub Tutorial
From the course: Advanced GitHub Actions
Run a job with a matrix strategy
- [Instructor] Let's run a workflow that uses a matrix strategy. I've created a new repo and I've added the exercise files for this lesson. The repo has a nodejs script and a workflow that uses a matrix strategy for multiple operating systems and different versions of nodejs. Let's take a look at that workflow. In this matrix, we have two keys. Version and platform. We're using the matrix value for platform to configure the runner for the job. And then, we're using the matrix value for version to configure the setup-node action. And just to demonstrate how our matrix values can be used and just to demonstrate how our matrix values can be used just about anywhere in a workflow, we'll use both values to configure the names of steps. We'll be able to see those values in the Actions console after we run the workflow. Speaking of running this workflow, let's go ahead and do that. On the Actions tab, I'll use the…