File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Node.js Build
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ build_backend :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+
15+ - name : Set up Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 22'
19+ check-latest : true
20+
21+ - name : Install dependencies
22+ run : |
23+ cd nodejs-backend
24+ npm install
25+ npm rebuild
26+ - name : Run build
27+ run : |
28+ cd nodejs-backend
29+ exit_status=0
30+ timeout 60 npm run backend || exit_status=$?
31+
32+ if [[ $exit_status -eq 124 ]]; then
33+ echo "Backend ran good!"
34+ else
35+ echo "Backend run failed!"
36+ exit 1
37+ fi
38+
39+ # - name: Run tests
40+ # run: npm test
Original file line number Diff line number Diff line change 1515 - name : Set up Node.js
1616 uses : actions/setup-node@v4
1717 with :
18- node-version : ' current '
18+ node-version : ' 16 '
1919 check-latest : true
2020
2121 - name : Install dependencies
You can’t perform that action at this time.
0 commit comments