Skip to content

Commit 2dad885

Browse files
committed
[NRL-774] Re-update .terraform-version files
1 parent 70f08e0 commit 2dad885

File tree

8 files changed

+15
-35
lines changed

8 files changed

+15
-35
lines changed

.github/workflows/persistent-environment.yml

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
runs-on: [self-hosted, ci]
2626

2727
steps:
28+
#- name: Clear stale ASDF state
29+
# run: rm -rf ~/.asdf
30+
2831
- name: Git clone - ${{ inputs.branch_name }}
2932
uses: actions/checkout@v4
3033
with:
@@ -51,18 +54,7 @@ jobs:
5154
source $(poetry env info --path)/bin/activate
5255
5356
- name: Run Linting
54-
run: |
55-
which asdf
56-
which terraform
57-
#env
58-
#cat .tool-versions
59-
#ls -ltr ~/.asdf/installs/terraform
60-
#asdf list terraform
61-
#ldd ~/.asdf/installs/terraform/1.9.8/bin/terraform
62-
#file ~/.asdf/installs/terraform/1.9.8/bin/terraform
63-
ls -ltr ~/.asdf/installs/terraform/1.9.8/bin
64-
~/.asdf/installs/terraform/1.9.8/bin/terraform --version
65-
make lint
57+
run: make lint
6658

6759
- name: Run Unit Tests
6860
run: make test
@@ -114,8 +106,7 @@ jobs:
114106
with:
115107
path: ~/.asdf
116108
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
117-
restore-keys: |
118-
${{ runner.os }}-asdf-
109+
fail-on-cache-miss: true
119110

120111
- name: Install asdf
121112
uses: asdf-vm/actions/[email protected]
@@ -194,8 +185,7 @@ jobs:
194185
with:
195186
path: ~/.asdf
196187
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
197-
restore-keys: |
198-
${{ runner.os }}-asdf-
188+
fail-on-cache-miss: true
199189

200190
- name: Install asdf
201191
uses: asdf-vm/actions/[email protected]
@@ -276,8 +266,7 @@ jobs:
276266
with:
277267
path: ~/.asdf
278268
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
279-
restore-keys: |
280-
${{ runner.os }}-asdf-
269+
fail-on-cache-miss: true
281270

282271
- name: Install asdf
283272
uses: asdf-vm/actions/[email protected]
@@ -321,8 +310,7 @@ jobs:
321310
with:
322311
path: ~/.asdf
323312
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
324-
restore-keys: |
325-
${{ runner.os }}-asdf-
313+
fail-on-cache-miss: true
326314

327315
- name: Install asdf
328316
uses: asdf-vm/actions/[email protected]
@@ -366,8 +354,7 @@ jobs:
366354
with:
367355
path: ~/.asdf
368356
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
369-
restore-keys: |
370-
${{ runner.os }}-asdf-
357+
fail-on-cache-miss: true
371358

372359
- name: Install asdf
373360
uses: asdf-vm/actions/[email protected]

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ APP_ALIAS ?= default
1616
HOST ?= $(TF_WORKSPACE_NAME).api.record-locator.$(ENV).national.nhs.uk
1717
ENV_TYPE ?= $(ENV)
1818

19-
DEBUG_PROP_ASDF_ENV := $(shell env | grep ASDF)
20-
DEBUG_PROP_BUILD_PATH := $(shell env | grep PATH)
21-
2219
export PATH := $(PATH):$(PWD)/.venv/bin
2320
export USE_SHARED_RESOURCES := $(shell poetry run python scripts/are_resources_shared_for_stack.py $(TF_WORKSPACE_NAME))
2421

@@ -49,7 +46,7 @@ check-warn:
4946
@SHOULD_WARN_ONLY=true ./scripts/check-build-environment.sh
5047

5148
check-deploy: ## check the deploy environment is setup correctly
52-
@./scripts/lint-deploy-environment.sh
49+
@./scripts/check-deploy-environment.sh
5350

5451
check-deploy-warn:
5552
@SHOULD_WARN_ONLY=true ./scripts/check-deploy-environment.sh
@@ -176,7 +173,6 @@ test-performance-cleanup:
176173
PYTHONPATH=. poetry run python tests/performance/environment.py cleanup $(TF_WORKSPACE_NAME)
177174

178175
lint: check-warn ## Lint the project
179-
180176
SKIP="no-commit-to-branch" pre-commit run --all-files
181177

182178
clean: ## Remove all generated and temporary files

scripts/check-build-environment.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ BUILD_DEPENDENCIES="
3333
zip
3434
"
3535

36-
echo "BUILD_PATH=${PATH}"
37-
env | grep "ASDF"
38-
3936
for dep in ${BUILD_DEPENDENCIES}; do
4037
set +e
4138
dep_path="$(which ${dep} 2> /dev/null)"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8

0 commit comments

Comments
 (0)