Skip to content

Commit

Permalink
fix: change automated test command for CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbie-goober committed Aug 5, 2024
1 parent 8c442cf commit aabba1f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/A2_Part2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aabba1f

Please sign in to comment.