tulsawebdevs / services-voting

A microservice backend for tracking proposed meetup topics and civic projects and voting on them
1 stars 8 forks source link

Rebuild CI pipeline to use docker compose so db is live for tests AND/OR update tests #19

Open zenlex opened 2 months ago

zenlex commented 2 months ago

The current start of endpoint tests fail in CI now that the DB wiring has been started since the current CI runs them without a live DB to test against and does not mock the service. Rather than mock the services since the whole app itself is a microservice, I think it makes more sense to just setup the CI to run an integration test with the test db instance spun up and use the docker commands.

zenlex commented 2 weeks ago

https://docs.github.com/en/actions/using-containerized-services/creating-postgresql-service-containers