test with just wait #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: push | |
jobs: | |
run-tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
container: | |
image: docker:latest | |
options: --privileged | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Docker Compose | |
run: | | |
apk add --no-cache docker-compose | |
- name: Build | |
run: docker compose up -d | |
- name: Wait for application to be ready | |
run: sleep 30 | |
# - name: Wait for application to be ready | |
# run: | | |
# # Define the container name | |
# CONTAINER_NAME="node-fhir-server-mongo-fhir-1" | |
# READY_STATEMENT="Server is up and running!" | |
# | |
# echo "Waiting for the application to be ready..." | |
# while ! docker logs "$CONTAINER_NAME" 2>&1 | grep "${READY_STATEMENT}"; do | |
# echo "Waiting..." | |
# echo "$(docker ps)" | |
# sleep 5 | |
# done | |
# echo "${READY_STATEMENT}" | |
- name: Test new patient request | |
run: ./scripts/curlRequests/new_patient_test.sh | |
- name: Test get patient request | |
run: ./scripts/curlRequests/patient_get_test.sh |