File tree Expand file tree Collapse file tree 5 files changed +173
-14
lines changed
Expand file tree Collapse file tree 5 files changed +173
-14
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : npm
4+ directory : /backend
5+ schedule :
6+ interval : weekly
7+
8+ - package-ecosystem : npm
9+ directory : /frontend
10+ schedule :
11+ interval : weekly
12+
13+ - package-ecosystem : npm
14+ directory : /mobile
15+ schedule :
16+ interval : weekly
17+
18+ - package-ecosystem : github-actions
19+ directory : /
20+ schedule :
21+ interval : weekly
Original file line number Diff line number Diff line change 77 branches : [main]
88
99jobs :
10- build :
10+ backend :
1111 runs-on : ubuntu-latest
12-
1312 defaults :
1413 run :
1514 working-directory : backend
1615
1716 steps :
18- - name : Checkout code
19- uses : actions/checkout@v3
17+ - uses : actions/checkout@v3
2018
21- - name : Setup Node.js
22- uses : actions/setup-node@v3
19+ - uses : actions/setup-node@v3
2320 with :
2421 node-version : 18
25- cache : ' npm'
22+ cache : npm
2623 cache-dependency-path : backend/package-lock.json
2724
2825 - name : Install dependencies
2926 run : npm ci
3027
31- - name : Syntax Check
32- run : node --check server.js
28+ - name : Lint
29+ run : npm run lint
30+
31+ - name : Run tests
32+ run : npm test
3333
3434 - name : Build Docker image
35- run : docker build -t zappify-backend .
35+ run : docker build -t zappify-backend .
36+
37+ frontend :
38+ runs-on : ubuntu-latest
39+ defaults :
40+ run :
41+ working-directory : frontend
42+
43+ steps :
44+ - uses : actions/checkout@v3
45+
46+ - uses : actions/setup-node@v3
47+ with :
48+ node-version : 18
49+ cache : npm
50+ cache-dependency-path : frontend/package-lock.json
51+
52+ - name : Install dependencies
53+ run : npm ci
54+
55+ - name : Lint
56+ run : npm run lint
Original file line number Diff line number Diff line change 1+ require ( 'dotenv' ) . config ( ) ;
12const express = require ( 'express' ) ;
23const cors = require ( 'cors' ) ;
34const helmet = require ( 'helmet' ) ;
@@ -7,10 +8,6 @@ const userRoutes = require('./routes/userRoutes');
78const productRoutes = require ( './routes/productRoutes' ) ;
89const paymentRoutes = require ( './routes/paymentRoutes' ) ;
910
10- if ( process . env . NODE_ENV !== 'production' ) {
11- require ( 'dotenv' ) . config ( ) ;
12- }
13-
1411connectDB ( ) ;
1512
1613const app = express ( ) ;
Original file line number Diff line number Diff line change 2020 "expo-crypto" : " ~15.0.8" ,
2121 "expo-dev-client" : " ~6.0.20" ,
2222 "expo-status-bar" : " ~3.0.9" ,
23+ "expo-updates" : " ~29.0.16" ,
2324 "expo-web-browser" : " ~15.0.10" ,
2425 "react" : " 19.1.0" ,
2526 "react-native" : " 0.81.5" ,
You can’t perform that action at this time.
0 commit comments