Skip to content

Commit

Permalink
Fix: adding setting up postgresql step in ci-cd.yml
Browse files Browse the repository at this point in the history
Error Message:
BlogueApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:180
        Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1786
            Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:276
                Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:191
  • Loading branch information
jimin-kiim authored May 29, 2024
1 parent a49550c commit 2f68d56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
with:
distribution: 'corretto'
java-version: '17'

- name: Set up PostgreSQL
uses: Daniel-Marynicz/[email protected]
with:
postgres_user: ${{ secrets.DB_USER }}
postgres_db: ${{ secrets.DB_NAME }}
postgres_password: ${{ secrets.DB_PASSWORD }}

- name: Build with Gradle
run: ./gradlew build
Expand Down

0 comments on commit 2f68d56

Please sign in to comment.