Skip to content

Commit d1f71bd

Browse files
authored
Merge pull request #21 from NHSDigital/update/yml
removed redundant code from masterfhirvalidation.yml, including python and poetry
2 parents 6182d9e + 7afbaed commit d1f71bd

6 files changed

Lines changed: 21 additions & 743 deletions

File tree

.github/workflows/masterfhirvalidation.yml

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Check out IOPS-Validation
3030
uses: actions/checkout@master
3131
with:
32-
repository: NHSDigital/IOPS-Validation
32+
repository: NHSDigital/IOPS-FHIR-Test-Scripts # orignally known as NHSDigital/IOPS-Validation
3333
path: validation
3434

3535
- name: Check out validation-service-fhir-r4
@@ -38,49 +38,12 @@ jobs:
3838
repository: NHSDigital/IOPS-FHIR-Validation-Service
3939
ref: main
4040
path: validation-service-fhir-r4
41-
42-
- name: Install Python 3.8
43-
uses: actions/setup-python@v4
44-
with:
45-
python-version: 3.8
46-
47-
- name: Upgrade python packaging tools
48-
run: python -m pip install --upgrade pip setuptools wheel
49-
50-
- name: Install poetry and requests
51-
run: pip install poetry requests
52-
53-
- name: Install dependencies
54-
run: poetry install
55-
56-
- name: Set SPEC_VERSION env var
57-
run: echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
58-
env:
59-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
60-
61-
- name: Set up JDK 11
62-
uses: actions/setup-java@v3
63-
with:
64-
java-version: '11'
65-
distribution: 'adopt'
66-
67-
- name: Install node
68-
run: |
69-
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
70-
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
71-
sudo apt-get install -y nodejs
72-
73-
- name: Cache node modules
74-
uses: actions/cache@v3
75-
with:
76-
path: ~/.npm
77-
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
78-
41+
7942
- name: Install npm
80-
run: make -C validation install
43+
run: cd validation && npm ci
8144

8245
- name: Configure FHIR Validator
83-
run: make -C validation configure-validation
46+
run: cd validation && npm start
8447
env:
8548
CI: true
8649
ONTO_CLIENT_ID: ${{ secrets.ONTO_CLIENT_ID }}
@@ -95,4 +58,4 @@ jobs:
9558
sleep 120
9659

9760
- name: Run Test
98-
run: make -C validation test
61+
run: cd validation && npm test

.github/workflows/testingbranch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
6868

6969
- name: Install npm
70-
run: make install
70+
run: npm ci
7171

7272
- name: Update FHIR Validator install
7373
run: make -C validation-service-fhir-r4 install

0 commit comments

Comments
 (0)