Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/masterfhirvalidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,20 @@ jobs:
run: cd validation-service-fhir-r4 && mvn clean package

- name: Run FHIR Validator
run:
run: |
nohup java -jar validation-service-fhir-r4/target/fhir-validator.jar --terminology.url=https://ontology.nhs.uk/production1/fhir --terminology.authorization.tokenUrl=https://ontology.nhs.uk/authorisation/auth/realms/nhs-digital-terminology/protocol/openid-connect/token --terminology.authorization.clientId=${{ secrets.ONTO_CLIENT_ID }} --terminology.authorization.clientSecret=${{ secrets.ONTO_CLIENT_SECRET }} --aws.validationSupport=false --aws.queueEnabled=false &
sleep 200
# Wait for it to become ready, try 30 times, with 10 seconds between
for i in {1..30}; do
if curl -sSf http://localhost:8080/fhir/metadata > /dev/null; then
echo "FHIR Validator is up!"
exit 0
fi
echo "Waiting for FHIR Validator..."
sleep 10
done

echo "FHIR Validator failed to start in time"
exit 1

- name: Run Test
run: cd validation && npm test
Expand Down