Skip to content

Commit 043872c

Browse files
authored
Merge pull request #227 from boostcampwm-2022/chore/#223-C
Chore/#223-C: CIμ—μ„œ λ°±μ—”λ“œ μ½”λ“œκ°€ μ‹€ν–‰λ˜λŠ”μ§€ ν…ŒμŠ€νŠΈ
2 parents 878e488 + f389d6f commit 043872c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
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 }

β€Žserver/tsconfig.path.jsonβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"@middlewares/*": ["middlewares/*"],
1111
"@utils/*": ["utils/*"],
1212
"@params/*": ["../types/params/*"],
13-
"@socket": ["socket"],
14-
"@wabinar/crdt": ["../@wabinar-crdt"]
13+
"@socket": ["socket"]
1514
}
1615
}
1716
}

0 commit comments

Comments
Β (0)