The Tech Meta

An inside look at tech's evolving playbook

Service containers in CI

Test observed

CI starts service containers beside a job, such as a database or a cache.

A CI job starts containers beside it for what its tests need: Postgres or another database, Redis, a message queue, a stand-in for an outside service. In GitHub Actions they are declared under a services key on the job, and GitHub starts them before the steps and removes them after. Teams use it to test against real backing services rather than mocks. The site counts a repo when a job of one of its workflows has a services key.

  • Pro scene today: 26%, 57 of 221 pro repos
  • In three months: +3 pts (8 pro repos added it, 1 removed it)
  • Kept: 91%, 49 of 54 that had it 3 months ago or before

Pro 26% · Ladder 8% · 3.2×

In the pro repos

The 6 most starred of the 57 pro repos that have it today.

By month

MonthPro scene
June 202515%
July 202516%
August 202516%
September 202516%
October 202517%
November 202516%
December 202516%
January 202616%
February 202616%
March 202618%
April 202619%
May 202619%
June 202620%
July 202621%
August 202622%
September 202623%
October 202624%
November 202626%
today26%

Evidence

Observed in the repos only: no published study is quoted for it yet.

How it is detected

Looks for a services key on a workflow job. Read in workflow files. How the method counts

Related practices

More in Test, the most adopted first.

Levels of evidence