forked from Roshansuthar1105/Codify
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (63 loc) · 1.77 KB
/
ci.yml
File metadata and controls
64 lines (63 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI Pipeline
on: [ pull_request, push]
jobs:
Frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
path: .
- name: Setup Node
uses: actions/setup-node@v5.0.0
- name: Install Dependencies
run: npm install
- name: Check Health
env:
VITE_SERVER_API : http://localhost:5050
VITE_YOUTUBE_API : dummy
VITE_GITHUB_TOKEN : dummy
VITE_RAPIDAPI_KEY : dummy
run: |
cd client
npm install
npm run dev || exit 1 &
sleep 15
curl -f http://localhost:5173 || exit 1
pkill -f "node"
Backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
path: .
- name: Setup Node
uses: actions/setup-node@v5.0.0
- name: Install Dependencies
run: npm install
- name: Check Server Directory
run: |
cd server
ls
- name: Check Health
env:
MONGODB_URI : "mongodb+srv://publicuser:public_codify@cluster0.5bysaia.mongodb.net/"
PORT: 5050
JWT_SECRET : your_jwt_secret
CLIENT_CORS : "*"
EMAIL_USER : demo@gmail.com
EMAIL_PASS : demo1234
GOOGLE_CLIENT_ID : dummy
GOOGLE_CLIENT_SECRET : dummy
GOOGLE_LOGIN_CALLBACK_URL : http://localhost:5050/api/v1/auth/google/login/callback
GOOGLE_SIGNUP_CALLBACK_URL : http://localhost:5050/api/v1/auth/google/signup/callback
FRONTEND_URL : http://localhost:5173
YOUTUBE_API_KEY : dummy
run: |
cd server
npm install
npm run server || exit 1 &
sleep 15
curl -f http://localhost:5050 || exit 1
pkill -f "node"