Skip to content

Commit

Permalink
fix: try
Browse files Browse the repository at this point in the history
  • Loading branch information
tituschewxj committed Oct 8, 2024
1 parent 2652b9e commit b447be8
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/docker-build.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- main
- staging
pull_request_target:
branches:
- main
- staging
pull_request:
branches:
- main
Expand Down Expand Up @@ -53,17 +49,14 @@ jobs:
rm ./apps/question-service/.env
rm ./apps/user-service/.env
- name: Wait for services to be ready
run: sleep 10

- name: Run Tests
run: |
# check if non-error status code received
curl --fail ${{ env.FRONTEND_URL }}
curl --fail ${{ env.USER_SERVICE_URL }}
curl --fail $FRONTEND_URL
curl --fail $USER_SERVICE_URL
# check if any response received
curl -s -o /dev/null ${{ env.QUESTION_SERVICE_URL }}
curl -s -o /dev/null $QUESTION_SERVICE_URL
# We can add more tests here
Expand Down

0 comments on commit b447be8

Please sign in to comment.