File tree Expand file tree Collapse file tree 1 file changed +14
-24
lines changed Expand file tree Collapse file tree 1 file changed +14
-24
lines changed Original file line number Diff line number Diff line change @@ -2,39 +2,29 @@ name: Node.js CI
22
33on :
44 push :
5- branches : [ "main", "dev" ]
5+ branches : ["main", "dev"]
66 pull_request :
7- branches : [ "main", "dev" ]
7+ branches : ["main", "dev"]
88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
1312 strategy :
1413 matrix :
1514 node-version : [16.x, 18.x, 20.x, 22.x]
1615
1716 steps :
18- - uses : actions/checkout@v4
19- - name : Use Node.js ${{ matrix.node-version }}
20- uses : actions/setup-node@v4
21- with :
22- node-version : ${{ matrix.node-version }}
17+ - uses : actions/checkout@v4
18+ - name : Use Node.js ${{ matrix.node-version }}
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+
23+ - name : Install
24+ run : npm install
2325
24- - name : Install Dependencies
25- run : npm install
26+ - name : Start
27+ run : npm start
2628
27- - name : Verify and Start
28- run : |
29- npm start > start.log 2>&1 &
30- START_PID=$!
31- sleep 5
32- if grep -q "config.json file does not exist. Read the installation/setup instructions." start.log; then
33- echo "Build and start completed successfully!"
34- kill $START_PID
35- exit 0
36- else
37- echo "An unexpected error occurred!"
38- fi
39- kill $START_PID
40- exit 1
29+ - name : Verify
30+ run : echo "Build completed successfully!"
You can’t perform that action at this time.
0 commit comments