# GitHub Actions

> The CI/CD tool built into GitHub. You set it up with a YAML file.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** GitHub Workflow, Actions, GHA

## Think of it like

Think of it like a robot helper in your project. When you push code, it gets to work.

## Definition

GitHub Actions is the CI/CD service built into GitHub. You describe the steps in a YAML file in the .github/workflows folder. When something happens, like a push or a pull request, GitHub starts a fresh machine and runs them. Each step can run a command or use a ready-made action shared by others. The results show as a green tick or a red cross next to the commit.

## Example

Lucy adds a small workflow file to her repo. Now each pull request runs her tests on a fresh machine. Nobody can merge until they pass.

## Example code

```yaml
on: push
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm test
```

On every push, a fresh machine gets the code and runs the tests.

## Why it matters

It lives where the code already is. Setting up CI takes one file and no extra server.

## Common mistake

Putting a secret key straight into the workflow file. Store it in the repo's secrets, and read it from there.

## Three principles

- **Built into GitHub.** No extra server.
- **A YAML file.** In .github/workflows.
- **Runs on events.** Push, pull request, schedule.

## Related terms

- [CI/CD Pipeline](https://learn.benibix.com/term/development/ci-cd-pipeline)
- [GitHub](https://learn.benibix.com/term/development/github)
- [YAML Ain't Markup Language (YAML)](https://learn.benibix.com/term/development/yaml)
- [Continuous Integration (CI)](https://learn.benibix.com/term/development/continuous-integration)
- [Claude Code GitHub Actions](https://learn.benibix.com/term/ai/claude-code-github-actions)
- [CI Runner](https://learn.benibix.com/term/development/ci-runner)
- [GitLab CI/CD](https://learn.benibix.com/term/development/gitlab-ci-cd)

---

Source: https://learn.benibix.com/term/development/github-actions
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
