` How do you handle integration tests on Github Action? » Motion design agency graphics studios

How do you handle integration tests on Github Action?

Locally, I run integration tests Docker and Docker Compose, which spins up a test database. Should I use the same workflow on Github Action? The current problem that I am having now is that Github Action does not seem to be reading my database password through the .env file, despite it working fine locally. I use the following commands both locally and in Github Action:

docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit docker-compose -f docker-compose.test.yml down --volumes 

Or should I pull a Postgres docker container in Githhub Action and assign it a new username/password and use that for integration testing? Ideally I would like to use the same workflow if possible, but I am not sure if I can.

submitted by
---
[fixed][/fixed]