GitHub Actions

GitHub's built-in automation service that runs workflows, written as YAML files in a repository, on runners when events happen.

In more detail

A workflow file contains jobs, each job runs on its own runner, and each job is a list of steps that run a shell command or call a reusable action. Events such as a push or a pull request start workflows.

Examples

jobs:
  plan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: terraform plan -out=tfplan
In Terraform: The course's pipeline is a GitHub Actions workflow: it runs on pull requests and pushes to main, checks out the code, then runs terraform fmt, init, validate and plan. It is shown as a transcript because it only runs inside GitHub.
In this course: Each job in a workflow can be made a required check on pull requests, which is how a quality gate is usually enforced on GitHub. Workflows are defined in YAML files in the repository's .github/workflows folder.

Related terms

Taught in

References

Certification courses