Skip to content

ci: mongodb service add #26

ci: mongodb service add

ci: mongodb service add #26

Workflow file for this run

name: HMS Backend CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 14, Col: 13): Unexpected value 'mongodb'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
mongodb:
image: mongo:6.0
ports:
- 27017:27017
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Lint
run: npm run lint
- name: Run Tests
run: npm test
- name: Build docker image
run: docker build -t hms-backend:${{ github.sha }} .