diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ecebbc73..d384a5bb 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -34,7 +34,7 @@ jobs: shell: bash - name: 프로젝트 빌드 - run: ./gradlew clean build + run: ./gradlew bootJar shell: bash - name: API EC2 인스턴스 접속 및 실행 중인 애플리케이션 종료 diff --git a/build.gradle b/build.gradle index 7139c0d9..a45278fe 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,7 @@ dependencies { // DB implementation 'mysql:mysql-connector-java:8.0.32' + implementation 'com.h2database:h2' // JPA implementation 'org.springframework.boot:spring-boot-starter-data-jpa' @@ -55,7 +56,7 @@ dependencies { implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' } -tasks.named('test') { +test { useJUnitPlatform() } @@ -64,6 +65,3 @@ tasks.withType(JavaCompile) { options.release = 17 // Java 17을 사용할 경우 release 17로 설정 } -test { - exclude '**/*' -}