File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments