devlk
c/learning u/devlk Team

What can I automate with GitHub Actions as a beginner?

Team FAQ: this question comes up often, so we've answered it below. Add your own experience, or a different view, in the comments.

GitHub Actions comes up in job posts and DevOps discussions. What is it, and what's a good first workflow to set up?

1
1 comment
No account needed: you'll get a random guest name, kept on this device. Or sign up to choose yours.
Sort by: Best Top New Old
devlk Team·

GitHub Actions runs scripts automatically when something happens in your repo: a push, a pull request, a schedule or a manual button. It's GitHub's built-in CI/CD.

A good first workflow: run your tests on every push and pull request. Create .github/workflows/ci.yml:

name: CI

on:
  push:
    branches: [main]
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
          cache: npm
      - run: npm ci
      - run: npm test

Push it, open the Actions tab and watch it run. Pull requests now show a green tick or red cross. (For Python, use actions/setup-python and pip install plus pytest; for Java, actions/setup-java with Maven or Gradle.)

Next things to automate:

  1. Linting and formatting checks (ESLint, Prettier, Black) so style debates disappear from code review.
  2. Deploying a static site to GitHub Pages, or an app to a cloud host, when main changes.
  3. Dependency updates with Dependabot, plus CI to check they don't break anything.
  4. Branch protection: in repo settings, require the CI check to pass before merging into main.

Secrets: store API keys under Settings > Secrets and variables > Actions and use them as ${{ secrets.MY_KEY }}. Never write keys into the workflow file.

Cost: public repositories get free minutes on GitHub's standard runners; private repos on the free plan have a monthly minutes allowance. Check GitHub's current billing page, as limits change.

Why it's worth learning: "I set up CI that runs tests on every pull request" is a concrete line for your CV and a common interview talking point, even for junior roles.

What was the first thing you automated with Actions?

1