We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18e0a02 commit 7558aaaCopy full SHA for 7558aaa
1 file changed
.github/workflows/ci.yml
@@ -0,0 +1,33 @@
1
+name: HMS Backend CI
2
+on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ strategy:
12
+ matrix:
13
+ node-version: [20.x]
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: ${{ matrix.node-version }}
22
+ cache: 'npm'
23
+ - name: Install dependencies
24
+ run: npm ci
25
26
+ - name: Run Lint
27
+ run: npm run lint
28
29
+ - name: Run Tests
30
+ run: npm test
31
32
+ - name: Build docker image
33
+ run: docker build -t hms-backend:${{ github.sha }} .
0 commit comments