Skip to content
Closed
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions .github/workflows/masterfhirvalidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,16 @@ jobs:
- name: Run FHIR Validator
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 120


- name: Wait for HAPI FHIR Server to be Ready
run: |
echo "Waiting for FHIR server..."
while ! curl --silent --fail http://localhost:8080/fhir/metadata > /dev/null; do
echo "Still waiting..."
sleep 5
done
echo "FHIR server is up!"

- name: Run Test
run: cd validation && npm test
env:
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/testingbranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'

- name: Install screen
run: sudo apt-get install screen

- name: Check out validation-service-fhir-r4
uses: actions/checkout@master
Expand All @@ -46,10 +49,18 @@ jobs:
- name: Update FHIR Validator build
run: cd validation-service-fhir-r4; mvn clean package

- name: Run FHIR Validator
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 }} &
sleep 60
- name: Start HAPI FHIR Server
run: |
screen -dmS fhir 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 }}

- name: Wait for HAPI FHIR Server to be Ready
run: |
echo "Waiting for FHIR server..."
while ! curl --silent --fail http://localhost:8080/fhir/metadata > /dev/null; do
echo "Still waiting..."
sleep 5
done
echo "FHIR server is up!"

- name: Run Test
run: npm run integration-test
Loading