Skip to content

Commit 7558aaa

Browse files
committed
ci: add github actions CI pipeline
1 parent 18e0a02 commit 7558aaa

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: HMS Backend CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
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

Comments
 (0)