Skip to content

Commit

Permalink
test as docker service w/ docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 12, 2024
1 parent b297158 commit be7ab9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

services:
docker:
image: docker:latest
image: docker:dind
options: --privileged

env: # Define global environment variables here
env:
FHIR_CONTAINER_NAME: "node-fhir-server-mongo-fhir-1"

steps:
Expand Down Expand Up @@ -41,6 +41,6 @@ jobs:
- name: Test curl requests
run: |
CONTAINER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "${FHIR_CONTAINER_NAME}")
sh ./scripts/curlRequests/new_patient_test.sh "$CONTAINER_IP"
sh ./scripts/curlRequests/new_patient_test.sh docker
sh ./scripts/curlRequests/patient_get_test.sh "$CONTAINER_IP"
sh ./scripts/curlRequests/patient_get_fail_test.sh "$CONTAINER_IP"

0 comments on commit be7ab9e

Please sign in to comment.