Skip to content

Commit 5c96420

Browse files
committed
Merge branch 'main' into Feature-MessageDefinitions
2 parents e1db27e + 8878976 commit 5c96420

1 file changed

Lines changed: 11 additions & 88 deletions

File tree

.github/workflows/terminology.yml

Lines changed: 11 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,20 @@
1-
name: IOPS-FHIR-Validation-Terminology
1+
name: IOPS-FHIR-Validation-call
22

33
# Controls when the workflow will run
44
on:
55
# Triggers the workflow on push or pull request events but only for the master branch
66
# Allows you to run this workflow manually from the Actions tab
7-
7+
88
push:
9-
9+
1010
workflow_dispatch:
11-
12-
11+
12+
1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
15-
# This workflow contains a single job called "build"
16-
build:
17-
# The type of runner that the job will run on
18-
runs-on: ubuntu-latest
19-
20-
# Steps represent a sequence of tasks that will be executed as part of the job
21-
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24-
with:
25-
submodules: true
26-
27-
- name: Check out IOPS-Validation
28-
uses: actions/checkout@master
29-
with:
30-
repository: NHSDigital/IOPS-Validation
31-
path: validation
32-
33-
- name: Check out validation-service-fhir-r4
34-
uses: actions/checkout@master
35-
with:
36-
repository: NHSDigital/validation-service-fhir-r4
37-
ref: main2
38-
path: validation-service-fhir-r4
39-
40-
- name: Install Python 3.8
41-
uses: actions/setup-python@v1
42-
with:
43-
python-version: 3.8
44-
45-
- name: Upgrade python packaging tools
46-
run: python -m pip install --upgrade pip setuptools wheel
47-
48-
- name: Install poetry and requests
49-
run: pip install poetry requests
50-
51-
- name: Install dependencies
52-
run: poetry install
53-
54-
- name: Set SPEC_VERSION env var
55-
run: echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
56-
env:
57-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
58-
59-
- name: Set up JDK 11
60-
uses: actions/setup-java@v2
61-
with:
62-
java-version: '11'
63-
distribution: 'adopt'
64-
65-
- name: Install node
66-
run: |
67-
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
68-
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
69-
sudo apt-get install -y nodejs
70-
71-
- name: Cache node modules
72-
uses: actions/cache@v1
73-
with:
74-
path: ~/.npm
75-
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
76-
77-
- name: Install npm
78-
run: make -C validation install
79-
80-
- name: Configure FHIR Validator
81-
run: make -C validation configure-validation
82-
env:
83-
CI: true
84-
ONTO_CLIENT_ID: ${{ secrets.ONTO_CLIENT_ID }}
85-
ONTO_CLIENT_SECRET: ${{ secrets.ONTO_CLIENT_SECRET }}
86-
87-
- name: Build FHIR Validator
88-
run: cd validation-service-fhir-r4 && mvn clean package
89-
90-
- name: Run FHIR Validator
91-
run:
92-
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 }} &
93-
sleep 180
94-
95-
- name: Run Test
96-
run: make -C validation test
97-
15+
# This workflow contains a single job called "call-workflow" which references the FHIR validator repo
16+
call-workflow:
17+
uses: NHSDigital/IOPS-FHIR-Test-Scripts/.github/workflows/masterfhirvalidation.yml@main
18+
secrets:
19+
ONTO_CLIENT_ID: ${{ secrets.ONTO_CLIENT_ID }}
20+
ONTO_CLIENT_SECRET: ${{ secrets.ONTO_CLIENT_SECRET }}

0 commit comments

Comments
 (0)