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:
uses: actions/checkout@v1
name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
name: Build with Maven
run: mvn -B package --file pom.xml
Github action for maven spring boot fails on "Build with maven" with error:
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.