Skip to content

Commit

Permalink
updated workflow: remove mongo and sever setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-py committed Oct 19, 2024
1 parent 2a6a7af commit 887a1cb
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/playwright-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,12 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest

services:
mongodb:
image: mongo:5.0
ports:
- 27018:27017 # Mapping port 27018 on the host to 27017 in the container
options: >-
--health-cmd="mongo --eval 'db.adminCommand({ ping: 1 })' --quiet"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install server dependencies
working-directory: ./server
run: npm install

- name: Start the project server
working-directory: ./server
run: |
echo "Starting the server from the /server folder..."
npm start &
echo "Waiting for the server to be ready..."
while ! nc -z localhost 8000; do
echo "Waiting for server..."
sleep 5
done
env:
MONGODB_URI_LOCAL: mongodb://127.0.0.1:27018/gameZonex
JWT_SECRET: gameZonex

- name: Install dependencies
working-directory: ./client
run: npm ci
Expand Down

0 comments on commit 887a1cb

Please sign in to comment.