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?
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?
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 testPush it, open the Actions tab and watch it run. Pull requests now show a green tick or red cross. (For Python, use
actions/setup-pythonandpip installpluspytest; for Java,actions/setup-javawith Maven or Gradle.)Next things to automate:
mainchanges.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?