Skip to content

Commit b6203d8

Browse files
committed
chore: 백엔드 코드가 실행되는지 테스트
빌드 테스트와 별도로 테스트. 10초간 문제 없으면 통과
1 parent 66bf7d9 commit b6203d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,28 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm ci
25+
2526
- name: For client directory
2627
run: |
2728
cd client
2829
npm run build --if-present
2930
npm test --if-present
31+
32+
- name: Install coreutils for macOS
33+
shell: bash
34+
if: runner.os == 'macOS'
35+
run: |
36+
brew install coreutils
37+
alias timeout=gtimeout
38+
3039
- name: For server directory
40+
shell: bash
41+
env:
42+
BACKEND_LOGIN_KEY: ${{ secrets.DOTENV_VAULT_BACKEND_CI_LOGIN_KEY }}
3143
run: |
3244
cd server
3345
npm run build --if-present
3446
npm test --if-present
47+
npx dotenv-vault login "$BACKEND_LOGIN_KEY" > /dev/null
48+
npx dotenv-vault pull ci .env
49+
timeout --verbose 10 npx ts-node index.ts || { if [ $? -eq 124 ]; then (exit 0); else (exit $?); fi }

0 commit comments

Comments
 (0)