GitHub Actions: Runners, Containers, Services, and Self-Hosted Execution/Start a Redis service for tests
Use a service container for integration or cache tests.
Section: Services and operational patterns
Start a Redis service for tests
yaml
yaml
services:
redis:
image: redis:7
ports:
- 6379:6379Explanation
Service containers provide disposable dependencies within a single workflow run.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Services and operational patterns