diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f209a87..5893794 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,9 +28,9 @@ jobs: echo "${{ secrets.APPLICATION_LOCAL }}" > ./src/main/resources/application-local.yml echo "${{ secrets.APPLICATION_TEST }}" > ./src/main/resources/application-test.yml -# - name: sql 파일 만들기 -# run: | -# echo "${{ secrets.SCHEMA }}" > ./src/main/resources/schema.sql + - name: sql 파일 만들기 + run: | + echo "${{ secrets.TEST_SCHEMA }}" > ./src/main/resources/test_schema.sql # echo "${{ secrets.CATEGORY }}" > ./src/main/resources/category.sql # echo "${{ secrets.GATHERING_CATEGORY }}" > ./src/main/resources/gathering_category.sql # echo "${{ secrets.ZONE_CATEGORY }}" > ./src/main/resources/zone_category.sql diff --git a/src/test/java/solitour_backend/solitour/SolitourApplicationTests.java b/src/test/java/solitour_backend/solitour/SolitourApplicationTests.java index aac74b1..b8fbd10 100644 --- a/src/test/java/solitour_backend/solitour/SolitourApplicationTests.java +++ b/src/test/java/solitour_backend/solitour/SolitourApplicationTests.java @@ -1,10 +1,12 @@ package solitour_backend.solitour; import org.junit.jupiter.api.Test; +import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; @SpringBootTest +@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.ANY) @ActiveProfiles("test") class SolitourApplicationTests {