Skip to content

Commit 9016ad8

Browse files
authored
Merge pull request #23 from NHSDigital/refactor-testingbranch-workflow
Refactor testingbranch workflow
2 parents d535c07 + 1365d41 commit 9016ad8

2 files changed

Lines changed: 5 additions & 86 deletions

File tree

.github/workflows/testingbranch.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- uses: actions/checkout@v3
2121
with:
2222
submodules: true
23-
2423

2524
- name: Check out validation-service-fhir-r4
2625
uses: actions/checkout@master
@@ -29,51 +28,18 @@ jobs:
2928
ref: main2
3029
path: validation-service-fhir-r4
3130

32-
- name: Install Python 3.8
33-
uses: actions/setup-python@v4
34-
with:
35-
python-version: 3.8
36-
37-
- name: Upgrade python packaging tools
38-
run: python -m pip install --upgrade pip setuptools wheel
39-
40-
- name: Install poetry and requests
41-
run: pip install poetry requests
42-
43-
- name: Install dependencies
44-
run: poetry install
45-
46-
- name: Set SPEC_VERSION env var
47-
run: echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
48-
env:
49-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
50-
51-
- name: Set up JDK 11
52-
uses: actions/setup-java@v3
53-
with:
54-
java-version: '11'
55-
distribution: 'adopt'
56-
57-
- name: Install node
58-
run: |
59-
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
60-
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
61-
sudo apt-get install -y nodejs
62-
63-
- name: Cache node modules
31+
- name: Cache Maven packages
6432
uses: actions/cache@v3
6533
with:
66-
path: ~/.npm
67-
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
34+
path: ~/.m2
35+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
36+
restore-keys: ${{ runner.os }}-m2-
6837

6938
- name: Install npm
7039
run: npm ci
7140

72-
- name: Update FHIR Validator install
73-
run: make -C validation-service-fhir-r4 install
74-
7541
- name: Update FHIR Validator build
76-
run: make -C validation-service-fhir-r4 build
42+
run: cd validation-service-fhir-r4; mvn clean package
7743

7844
- name: Run FHIR Validator
7945
run:

pyproject.toml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)