Harmon758 / postgresql-action

GitHub Action to setup a PostgreSQL database
MIT License
128 stars 42 forks source link

Maven Spring Boot connection? #6

Closed jnxzu closed 4 years ago

jnxzu commented 4 years ago

Github action for maven spring boot fails on "Build with maven" with error:

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

My application.properties regarding the connection are: spring.datasource.url=jdbc:postgresql://localhost:5432/postgres spring.datasource.driverClassName=org.postgresql.Driver spring.datasource.username=postgres spring.datasource.password=admin

My maven.yml:

` steps:

Everything works correctly when ran locally of course.