File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
backend/src/main/java/com/ai/lawyer/global/config Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 8787 test -s .env || { echo ".env is empty"; exit 1; }
8888
8989 - name : Run unit, and domain tests
90- run : |
91- # 1️⃣ .env export
92- set -a
93- source .env
94- set +a
95-
96- # 2️⃣ Gradle 테스트 실행
97- ${{ matrix.gradle_cmd }} clean test
90+ run : ${{ matrix.gradle_cmd }} clean test
9891 working-directory : backend
9992
10093 - name : Upload Test Reports
Original file line number Diff line number Diff line change 55import org .springframework .context .annotation .Bean ;
66import org .springframework .context .annotation .Configuration ;
77import org .springframework .context .annotation .Primary ;
8+ import org .springframework .context .annotation .Profile ;
89import org .springframework .data .jpa .repository .config .EnableJpaRepositories ;
910import org .springframework .orm .jpa .JpaTransactionManager ;
1011import org .springframework .orm .jpa .LocalContainerEntityManagerFactoryBean ;
2021 entityManagerFactoryRef = "dataEntityManager" ,
2122 transactionManagerRef = "dataTransactionManager"
2223)
24+ @ Profile ("!test" )
2325public class DataDBConfig {
2426
2527 @ Value ("${spring.datasource.url}" )
Original file line number Diff line number Diff line change 66import org .springframework .boot .jdbc .DataSourceBuilder ;
77import org .springframework .context .annotation .Bean ;
88import org .springframework .context .annotation .Configuration ;
9+ import org .springframework .context .annotation .Profile ;
910
1011import javax .sql .DataSource ;
1112
1213@ Configuration
14+ @ Profile ("!test" )
1315public class MetaDBConfig {
1416
1517 @ Bean
You can’t perform that action at this time.
0 commit comments