From the course: Learning GitHub Actions

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Add jobs and steps to a workflow

Add jobs and steps to a workflow - GitHub Tutorial

From the course: Learning GitHub Actions

Add jobs and steps to a workflow

- [Instructor] So far, we have the start of a workflow, but it's not going to do anything unless we give it a job. Each workflow must have at least one job and each job must have a unique identifier. Job identifiers must start with a letter or an underscore and can only contain alphanumeric characters, dashes and underscores. And by default, jobs run in parallel. In another lesson, we'll see how we can work around that by building dependencies between jobs so they run sequentially. So let's add the jobs attribute to our workflow, and then under that, job one and job two. Along with the job identifiers, we can also give each of these jobs names. Let's call job one first job and job two second job. Now we need to specify the compute resource GitHub will use to run each job. To do that, we use the runs-on attribute. So under each job, I'll add runs-on. GitHub provides compute resources to run our jobs. These are called…

Contents