workflow (GitHub Actions)

A YAML file in the .github/workflows folder of a repository that names its triggers and the jobs to run.

In more detail

A workflow has a name, an on key listing the events that start it and a jobs key. Because it lives in the repository, a change to the pipeline is a commit that can be reviewed and reverted like any other code.

Examples

name: pipeline
on:
  push:
    branches: [main]
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - run: bash tests/run.sh
bun run ci/validate-workflow.ts ci/pipeline.yml
In this course: putting the gate's required checks in a workflow file keeps the policy visible, versioned and reviewable with the code.

Related terms

Taught in

References

Certification courses