File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed
main/java/io/f1/backend/domain/user/entity Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ pull_request :
4+ branches : [ dev ]
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ permissions :
9+ contents : read
10+ env :
11+ PROJECT_DIR : backend
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up JDK 21
16+ uses : actions/setup-java@v4
17+ with :
18+ java-version : ' 21'
19+ distribution : ' temurin'
20+
21+ - name : Setup Gradle
22+ uses : gradle/actions/setup-gradle@v4
23+
24+ - name : Run tests
25+ run : ./gradlew test
26+ working-directory : ${{ env.PROJECT_DIR }}
27+
28+ - name : Upload test report
29+ if : always()
30+
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : junit-test-report
34+ path : ${{ env.PROJECT_DIR }}/build/reports/tests/test
35+ include-hidden-files : true
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ dependencies {
3838 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
3939 testImplementation ' org.projectlombok:lombok'
4040 testAnnotationProcessor ' org.projectlombok:lombok'
41+ testRuntimeOnly ' com.h2database:h2'
4142
4243 /* ETC */
4344 annotationProcessor ' org.projectlombok:lombok'
Original file line number Diff line number Diff line change 1010import jakarta .persistence .GenerationType ;
1111import jakarta .persistence .Id ;
1212import jakarta .persistence .OneToOne ;
13+ import jakarta .persistence .Table ;
1314
1415import java .time .LocalDateTime ;
1516
1617@ Entity
18+ @ Table (name = "`user`" )
1719public class User extends BaseEntity {
1820
1921 @ Id
Original file line number Diff line number Diff line change 1+ spring :
2+ datasource :
3+ url : jdbc:h2:mem:testdb;MODE=MYSQL
4+ username : sa
5+ password:
You can’t perform that action at this time.
0 commit comments