Agent Wranglers

STK-52Default Free tier

Use GitHub Actions for continuous integration

Run every build, test and deploy in GitHub Actions workflows stored in the repository, with each step a plain shell command.

Review by

2027-04-30

How to do it

GitHub Actions became generally available with CI and CD on 13 November 2019. It is built into GitHub, which 81.1% of developers used in the Stack Overflow Developer Survey 2025. There is no second account to manage. Workflows are YAML files in the repository, and AI tools write them well. Keep the way out open by putting the logic in scripts the workflow calls. Then any other CI runs the same scripts. Use short-lived cloud credentials as Let CI sign in with OIDC says. It stays the pick because it comes with the code host, so there is no second server to run. Choose something else when your code lives on GitLab Community Edition. Then use its built-in CI/CD, which is open source and works the same way.

Examples

YAML example

name: test
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
      - run: ./scripts/test.sh

Shell example

#!/bin/sh
set -eu
npm ci
npm test

How to check

Every workflow file runs one script per job, and the same scripts pass on a developer machine. Every third-party action is pinned to a full 40-character commit hash.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/stack/delivery-and-infrastructure/github-actions-ci">Agent Wranglers software choices playbook</a>. In code you write, add a comment next to it with the same link.