Updating tests
Some checks failed
Run Socket Server Tests / test (push) Failing after 26s

This commit is contained in:
Logan Cusano
2024-04-07 16:53:54 -04:00
parent 0a76804490
commit 8e73659855

View File

@@ -3,52 +3,54 @@ name: Run Socket Server Tests
on: [push, pull_request] on: [push, pull_request]
env: env:
NODE_ENV: development NODE_ENV: development
MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: example MONGO_INITDB_ROOT_PASSWORD: admin
SERVER_PORT: 6000 MONGO_INITDB_DATABASE: drb
MONGO_URL: "mongodb://127.0.0.1:27017/drb" SERVER_PORT: 6000
MONGO_URL: "mongodb://127.0.0.1:27017/drb"
jobs: jobs:
test:
build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
mongodb: mongodb:
image: mongo image: mongo:latest
ports: ports:
- 27017:27017 - 27017:27017
options: --name mongodb options: >-
--health-cmd mongo
test: --health-interval 10s
runs-on: ubuntu-latest --health-timeout 5s
--health-retries 5
--name mongodb
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: "20"
- name: Remove package-lock.json - name: Remove package-lock.json
working-directory: './server' working-directory: "./server"
run: rm package-lock.json run: rm package-lock.json
- name: Install Node-GYP - name: Install Node-GYP
working-directory: './server' working-directory: "./server"
run: npm install -g node-gyp run: npm install -g node-gyp
- name: Install dependencies - name: Install dependencies
working-directory: './server' working-directory: "./server"
run: npm install run: npm install
- run: echo "Node has finished installing dependencies" - run: echo "Node has finished installing dependencies"
- name: Run tests - name: Run tests
working-directory: './server' working-directory: "./server"
run: npm test run: npm test
- run: echo "Completed the tests" - run: echo "Completed the tests"