Skip to main content

GitHub Actions Guides & Workflows

GitHub Actions is the CI/CD system built into GitHub: YAML workflows in .github/workflows that run on pushes, pull requests, schedules, or manual dispatch. These guides cover writing workflows that stay fast and cheap, including dependency caching, matrix builds, reusable workflows, and concurrency groups that cancel stale runs.

Beyond the basics, the focus is on running Actions safely in production: OIDC instead of long-lived cloud keys, pinning third-party actions to a commit SHA, least-privilege GITHUB_TOKEN permissions, self-hosted runner tradeoffs, and keeping an eye on billable minutes.

Page 1 of 3 · 35 posts

Frequently asked questions

What is GitHub Actions used for?

GitHub Actions automates work triggered by repository events: running tests and linters on pull requests, building and publishing container images, deploying to cloud environments, and scheduled jobs like dependency updates or nightly reports.

How do I speed up slow GitHub Actions workflows?

Cache dependencies with actions/cache or the built-in cache option of setup actions, split long test suites across a matrix, skip jobs with path filters, cancel superseded runs with a concurrency group, and use larger or self-hosted runners for heavy builds.

Is GitHub Actions free?

Public repositories get free minutes on standard GitHub-hosted runners. Private repositories get a monthly minute allowance that depends on the plan, and usage beyond it is billed per minute, with macOS and larger runners costing more than standard Linux runners.