File tree Expand file tree Collapse file tree 1 file changed +40
-34
lines changed
Expand file tree Collapse file tree 1 file changed +40
-34
lines changed Original file line number Diff line number Diff line change 11name : HMS Backend CI
2+
23on :
3- push :
4- branches : [ main ]
5- pull_request :
6- branches : [ main ]
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
79jobs :
8- build :
9- runs-on : ubuntu-latest
10-
11- strategy :
12- matrix :
13- node-version : [20.x]
14- mongodb :
15- image : mongo:6.0
16- ports :
17- - 27017:27017
18- steps :
19- - name : Checkout repository
20- uses : actions/checkout@v4
21-
22- - name : Setup Node.js
23- uses : actions/setup-node@v4
24- with :
25- node-version : ${{ matrix.node-version }}
26- cache : ' npm'
27- - name : Install dependencies
28- run : npm ci
29-
30- - name : Run Lint
31- run : npm run lint
32-
33- - name : Run Tests
34- run : npm test
35-
36- - name : Build docker image
37- run : docker build -t hms-backend:${{ github.sha }} .
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [20.x]
16+
17+ services :
18+ mongodb :
19+ image : mongo:6.0
20+ ports :
21+ - 27017:27017
22+
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Node.js
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : ${{ matrix.node-version }}
31+ cache : npm
32+
33+ - name : Install dependencies
34+ run : npm ci
35+
36+ - name : Run Lint
37+ run : npm run lint
38+
39+ - name : Run Tests
40+ run : npm test
41+
42+ - name : Build docker image
43+ run : docker build -t hms-backend:${{ github.sha }} .
You can’t perform that action at this time.
0 commit comments