my Github Actions sometime fails to resolve DNS resolution to DB container.
I setup my job for GithubAction like this.
jobs: test: runs-on: ubuntu-20.04 defaults: run: working-directory: apps/myapp/app env: PSQL_HOST: postgres PSQL_PORT: 5432 PSQL_USER: username PSQL_PASSWORD: password PSQL_DATABASE: testdb PGSSLMODE: disable services: postgres: image: postgres options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 10s --health-retries 10 env: POSTGRES_USER: username POSTGRES_PASSWORD: password POSTGRES_DB: testdb steps: // migrate db and run tests
But tests occasionally fails when initializing databases with errors like this.
Error on DumpDDLs: dial tcp: lookup postgres: Temporary failure in name resolution
Does anyone have ideas about this?