Skip to content

Commit 42a0cc5

Browse files
committed
fix: CI 테스트 타임존을 Asia/Seoul로 고정
1 parent 85cefac commit 42a0cc5

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci-production.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
3434
env:
3535
SPRING_PROFILES_ACTIVE: ci
36+
TZ: Asia/Seoul
3637
CI_DB_HOST: 127.0.0.1
3738
CI_DB_PORT: 3306
3839
CI_DB_NAME: ci_db
@@ -65,7 +66,7 @@ jobs:
6566
exit 1
6667
6768
- name: Run tests
68-
run: ./gradlew test --stacktrace --info
69+
run: ./gradlew test --stacktrace --info -Duser.timezone=Asia/Seoul
6970

7071
build:
7172
runs-on: ubuntu-latest

.github/workflows/deploy-staging-auto.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
3232
env:
3333
SPRING_PROFILES_ACTIVE: ci
34+
TZ: Asia/Seoul
3435
CI_DB_HOST: 127.0.0.1
3536
CI_DB_PORT: 3306
3637
CI_DB_NAME: ci_db
@@ -63,7 +64,7 @@ jobs:
6364
exit 1
6465
6566
- name: Run tests
66-
run: ./gradlew test --stacktrace --info
67+
run: ./gradlew test --stacktrace --info -Duser.timezone=Asia/Seoul
6768

6869
build_and_deploy:
6970
runs-on: ubuntu-latest

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@ dependencies {
8282

8383
tasks.named('test') {
8484
useJUnitPlatform()
85+
systemProperty "user.timezone", "Asia/Seoul"
8586
}

0 commit comments

Comments
 (0)