-
Goal : Run ./gradlew test after each push to master Setup : Fairly simple Spring boot setup with Postgres Database Issue: Spring can’t connect to DB See this commit to see the last effort I made to get github actions working. The following code is primarly based on this github action. Test.yml
application.properties
Errors I am seeing:
I am 99% sure these errors arre because Spring Boot can find the database. Any pointers would be great! -Daniel |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I fixed it. See this commit for the first passing test. To be honest I don’t really know what fixed it (it was a combination of things). If you somehow stumble upon this I would recommend first learning how to use docker and docker compose. There are way more tutorials on that topic. |
Beta Was this translation helpful? Give feedback.
-
@zfz7 , Glad to hear that the problem has been solved. If you have any other question about this ticket, feel free to tell us. Thanks. |
Beta Was this translation helpful? Give feedback.
I fixed it. See this commit for the first passing test. To be honest I don’t really know what fixed it (it was a combination of things). If you somehow stumble upon this I would recommend first learning how to use docker and docker compose. There are way more tutorials on that topic.