File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : DevTrack Pro CI
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ backend-ci :
11+ runs-on : ubuntu-latest
12+ defaults :
13+ run :
14+ working-directory : ./backend
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : ' npm'
22+ cache-dependency-path : ' ./backend/package-lock.json'
23+
24+ - name : Install Dependencies
25+ run : npm ci
26+
27+ - name : Run Tests
28+ run : npm run test
29+ env :
30+ JWT_SECRET : ${{ secrets.JWT_SECRET }} # GitHub Secrets para seguridad
31+
32+ frontend-ci :
33+ runs-on : ubuntu-latest
34+ defaults :
35+ run :
36+ working-directory : ./frontend
37+ steps :
38+ - uses : actions/checkout@v4
39+ - name : Setup Node.js
40+ uses : actions/setup-node@v4
41+ with :
42+ node-version : ' 20'
43+ cache : ' npm'
44+ cache-dependency-path : ' ./frontend/package-lock.json'
45+
46+ - name : Install Dependencies
47+ run : npm ci
48+
49+ - name : Build Project
50+ run : npm run build
You can’t perform that action at this time.
0 commit comments