Docker and CI/CD · Middle · Question 51 of 75

How can integration tests in GitHub Actions get a real PostgreSQL?

Explanation

Service containers start before the steps and are reachable on mapped ports (or by name when the job runs in a container). Health options make the job wait for readiness.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 51

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz