From aabba1fb16ecce43897e7a37469ae26470de08c4 Mon Sep 17 00:00:00 2001 From: gerbie_goober Date: Sun, 4 Aug 2024 21:17:23 -0400 Subject: [PATCH] fix: change automated test command for CD workflow --- .github/workflows/A2_Part2.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/A2_Part2.yml b/.github/workflows/A2_Part2.yml index fb6a8f3..2caadd6 100644 --- a/.github/workflows/A2_Part2.yml +++ b/.github/workflows/A2_Part2.yml @@ -30,15 +30,18 @@ jobs: docker rm frontend || true docker stop backend || true docker rm backend || true - docker stop redis || true - docker rm redis || true docker run -d --name frontend -p 80:3000 ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_frontend:latest docker run -d --name backend -p 5000:5000 ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_backend:latest - name: Run Automated Tests for Backend run: | - docker exec backend npm test + ls + cd backend + npm install + npm test - name: Run Automated Tests for Frontend run: | - docker exec frontend npm test + cd frontend + npm install + npm test