Updating tests file to use mongo docker for testing
Some checks failed
Run Socket Server Tests / build (push) Failing after 0s
Run Socket Server Tests / test (push) Failing after 31s

This commit is contained in:
Logan Cusano
2024-04-07 16:43:35 -04:00
parent 9ad24ca8ec
commit 0a76804490

View File

@@ -1,18 +1,32 @@
name: Run Socket Server Tests
on: [push]
on: [push, pull_request]
env:
NODE_ENV: development
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
SERVER_PORT: 6000
MONGO_URL: "mongodb://127.0.0.1:27017/drb"
jobs:
build:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
options: --name mongodb
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Setup Node.js
uses: actions/setup-node@v4