Mid-level Track Roadmap

CI/CD: GitHub Actions

This course works through a Rails application's GitHub Actions pipeline, starting from the CI file generated by rails new. It explains events, jobs, runners and steps, then adds the missing RSpec job with a PostgreSQL service container. Later lessons cover speed through parallel jobs, concurrency, caching and timeouts. They also cover flaky tests, failure artifacts and the limits of a green check. Secrets, token permissions, OIDC and fork pull requests come next, and the course ends with a gated Kamal deploy job and the complete workflow file.

What you'll learn

  • ✓How events, jobs, runners and steps form a workflow
  • ✓Running RSpec in CI with a PostgreSQL service container
  • ✓Speeding up a pipeline with needs, concurrency, caching and timeouts
  • ✓Handling flaky tests and keeping failure screenshots as artifacts
  • ✓Managing secrets, GITHUB_TOKEN permissions and pull requests from forks
  • ✓Adding a gated Kamal deploy job to the workflow
Free preview · Lesson 1 4 min read

The CI you already have

This application has a CI pipeline. It was generated by rails new, it has been running on every pull request since the first commit, and most people who work on a Rails app have never opened it.

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...