Interview Q&A / Git & GitHub

BeginnerQuick answer1 min readUpdated 3 Oct 2026

What is GitHub Actions?

SHORT ANSWER

GitHub Actions is GitHub's built-in automation. A workflow, written in a YAML file under .github/workflows, runs jobs on GitHub-hosted machines when events like a push or pull request occur, commonly for tests, builds and deployment.

Explain it simply

Imagine a helper who, every time you hand in code, runs the tests, checks the formatting and tells you if anything fails, without you asking.

A workflow file names the trigger (on: push), the machine (runs-on: ubuntu-latest) and steps. Steps can run shell commands or reuse ready-made actions such as actions/checkout. Results show as green ticks or red crosses on the pull request. Public repositories get free minutes, and private ones have a monthly allowance depending on the plan.

Example

yaml
name: tests
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm test

What to say in the interview

"GitHub Actions runs automated workflows defined in YAML under .github/workflows, triggered by events like push or pull request. A typical workflow checks out the code, installs dependencies, and runs tests, with the result shown on the pull request."

#github#actions#ci

Related questions

Practise more Git & GitHub questions

Test your recall with short answers, then return to the detailed explanations when you need context.

Open Git & GitHub quick answers →

Get new questions like this by email

One short email when something new and useful lands. No spam, unsubscribe in one tap.

By subscribing you agree to the Privacy Policy.