Skip to content

Commit edf8c7c

Browse files
committed
feature: 통합 테스트 코드 업데이트 완료
1 parent 8a8a40c commit edf8c7c

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/test-ci.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version: [20, 21, 22, 23]
16-
fail-fast: false # 한 버전 실패 시 전체 중단 방지
16+
fail-fast: false # 한 버전 실패 시 전체 중단 방지
1717

1818
steps:
1919
- name: Checkout repository
@@ -50,11 +50,19 @@ jobs:
5050
- name: Install dependencies
5151
run: pnpm install --frozen-lockfile
5252

53+
- name: Create .env file
54+
run: |
55+
echo "DATABASE_NAME=${{ secrets.DATABASE_NAME }}" >> .env
56+
echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env
57+
echo "POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}" >> .env
58+
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
59+
echo "POSTGRES_PORT=${{ secrets.POSTGRES_PORT }}" >> .env
60+
5361
- name: Run lint
5462
run: pnpm run lint
5563

5664
- name: Run tests
5765
run: pnpm run test
5866

5967
- name: Run build
60-
run: pnpm run build
68+
run: pnpm run build

src/repositories/__test__/post.repo.integration.test.ts

-5
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ describe('PostRepository 통합 테스트', () => {
9090
// 모든 쿼리 완료 대기
9191
await new Promise(resolve => setTimeout(resolve, 1000));
9292

93-
// 모든 연결 종료 시도
94-
// if (client) {
95-
// client.release(true);
96-
// }
97-
9893
// 풀 완전 종료
9994
if (testPool) {
10095
// 강제 종료: 모든 활성 쿼리와 연결 중지

0 commit comments

Comments
 (0)