diff --git a/.github/workflows/playwright-test.yml b/.github/workflows/playwright-test.yml index ef0ba9c..4791f3f 100644 --- a/.github/workflows/playwright-test.yml +++ b/.github/workflows/playwright-test.yml @@ -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