Skip to content

Setup mongodb properly #8

Setup mongodb properly

Setup mongodb properly #8

Workflow file for this run

name: Node.js CI - SEManager
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
services:
mongo:
image: mvertes/alpine-mongo:latest
options: --health-cmd "mongo --eval 'db.runCommand({ connectionStatus: 1 })'"

Check failure on line 11 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
env:
MONGODB_URI: "mongodb:https://localhost:27017/serverTestDB"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
# Caching in monorepos
cache-dependency-path: server/package-lock.json
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- run: npm ci
- run: cd server && npm run ci-test