Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NeerajK007 authored Oct 21, 2024
1 parent 3a6df74 commit 2843847
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ jobs:
- name: Start Docker containers
run: |
docker compose up --build -d
- name: Check containers status/ build status
run: |
docker ps
# Step 5: Run tests for seller module (Stop unnecessary services: postgres, strapi)
- name: Run tests for seller module
run: |
docker compose stop postgres strapi
docker compose stop oasp-seller-app-seller-1
cd seller
npm install
npm test
Expand All @@ -49,13 +53,13 @@ jobs:
# Step 6: Run tests for seller-app-api module (Stop unnecessary service: seller)
- name: Run tests for seller-app-api module
run: |
docker compose start postgres strapi
docker compose stop seller
docker compose start oasp-seller-app-seller-1
cd seller-app-api
npm install
npm test
# Step 7: Stop and remove Docker containers
- name: Stop and remove Docker containers
run: |
cd ..
docker compose down

0 comments on commit 2843847

Please sign in to comment.