Skip to content

Commit b266164

Browse files
committed
Merge branch 'main' into fix/CCM-14248_letter-map-source-to-match-core
2 parents 78581a6 + edb1506 commit b266164

250 files changed

Lines changed: 12080 additions & 6188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.template

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,27 @@ API_KEY=
33
HEADERAUTH=
44
PR_NUMBER=prxx # remove if needs to run against main
55
NHSD_APIM_TOKEN=
6+
PROXY_NAME=
7+
# * nhs-notify-supplier--internal-dev--nhs-notify-supplier
8+
# * nhs-notify-supplier--internal-dev--nhs-notify-supplier-PR-XX
9+
# * nhs-notify-supplier--ref--nhs-notify-supplier -- ref env
10+
11+
# API Keys
12+
# ========
13+
# In order to find out the value of an environments given API key, follow these steps
14+
# 1. Log in to Non-Prod
15+
# 2. Navigate to 'Publish' > 'Apps' and search for the app linked to authentication
16+
# 3. Copy the "key" from the Credentials related to the app
17+
# Note: For INT and higher environments use developer portal https://identity.prod.api.platform.nhs.uk/
18+
export NON_PROD_API_KEY=xxx
19+
export INTEGRATION_API_KEY=xxx
20+
export PRODUCTION_API_KEY=xxx
21+
22+
# Private Keys
23+
# ============
24+
# private key used to generate authentication for tests ran against the internal-dev and internal-qa
25+
export NON_PROD_PRIVATE_KEY=xxx # path to the private key file
26+
# private key used to generate authentication for tests ran against the int environment
27+
export INTEGRATION_PRIVATE_KEY=xxx
28+
# private key used to generate authentication for tests ran against the prod environment
29+
export PRODUCTION_PRIVATE_KEY=xxx

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/.github/ @NHSDigital/nhs-notify-supplier-api-admins
66
*.code-workspace @NHSDigital/nhs-notify-supplier-api-admins
77
/docs/ @NHSDigital/nhs-notify-supplier-api
8-
/infrastructure/terraform/ @NHSDigital/nhs-notify-platform @NHSDigital/nhs-notify-supplier-api-admins
8+
/infrastructure/terraform/ @NHSDigital/nhs-notify-platform
99

1010
# Root level AGENTS.md owned by platform.
1111
AGENTS.md @NHSDigital/nhs-notify-platform

.github/actions/build-libraries/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ runs:
3131
make build VERSION="${{ inputs.version }}"
3232
3333
- name: Upload abstractions artifact
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v6
3535
with:
3636
path: "src/server/abstractions/bin/Release"
3737
name: libs-abstractions-${{ inputs.version }}
3838
include-hidden-files: true
3939

4040
- name: Upload data artifact
41-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@v6
4242
with:
4343
path: "src/server/data/bin/Release"
4444
name: libs-data-${{ inputs.version }}
4545
include-hidden-files: true
4646

4747
- name: Upload letter artifact
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v6
4949
with:
5050
path: "src/server/letter/bin/Release"
5151
name: libs-letter-${{ inputs.version }}
5252
include-hidden-files: true
5353

5454
- name: Upload host artifact
55-
uses: actions/upload-artifact@v4
55+
uses: actions/upload-artifact@v6
5656
with:
5757
path: "src/server/host/bin/Release"
5858
name: libs-host-${{ inputs.version }}
@@ -75,7 +75,7 @@ runs:
7575
outputs: type=docker,dest=${{ runner.temp }}/myimage/myimage.tar
7676

7777
- name: Upload artifact
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v6
7979
with:
8080
name: libs-host-docker-${{ inputs.version }}
8181
path: ${{ runner.temp }}/myimage

.github/actions/build-oas-spec/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ runs:
6868
fi
6969
7070
- name: Upload API OAS specification artifact
71-
uses: actions/upload-artifact@v4
71+
uses: actions/upload-artifact@v6
7272
with:
7373
path: "build"
7474
name: api-oas-specification-${{ inputs.apimEnv }}${{ inputs.version != '' && format('-{0}', inputs.version) || '' }}

.github/actions/build-proxies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ runs:
9696
echo "APIM_ENV=$APIM_ENV" >> $GITHUB_ENV
9797
9898
- name: Upload OAS Spec
99-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@v6
100100
with:
101101
name: ${{ env.APIM_ENV }}-build-output
102102
path: ./build

.github/actions/build-sdk/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ runs:
5656
make build VERSION="${{ inputs.version }}"
5757
5858
- name: Upload html artifact
59-
uses: actions/upload-artifact@v4
59+
uses: actions/upload-artifact@v6
6060
with:
6161
path: "sdk/html"
6262
name: sdk-html-${{ inputs.version }}
6363

6464
- name: Upload swagger artifact
65-
uses: actions/upload-artifact@v4
65+
uses: actions/upload-artifact@v6
6666
with:
6767
path: "sdk/swagger"
6868
name: sdk-swagger-${{ inputs.version }}
6969

7070
- name: Upload ts artifact
71-
uses: actions/upload-artifact@v4
71+
uses: actions/upload-artifact@v6
7272
with:
7373
path: "sdk/typescript"
7474
name: sdk-ts-${{ inputs.version }}
7575

7676
- name: Upload python artifact
77-
uses: actions/upload-artifact@v4
77+
uses: actions/upload-artifact@v6
7878
with:
7979
path: "sdk/python"
8080
name: sdk-python-${{ inputs.version }}
8181

8282
- name: Upload csharp artifact
83-
uses: actions/upload-artifact@v4
83+
uses: actions/upload-artifact@v6
8484
with:
8585
path: "sdk/csharp"
8686
name: sdk-csharp-${{ inputs.version }}

.github/actions/build-server/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ runs:
3636
make build VERSION="${{ inputs.version }}"
3737
3838
- name: Upload csharp-server artifact
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@v6
4040
with:
4141
path: "server/csharp-server"
4242
name: server-csharp-${{ inputs.version }}
4343

4444
- name: Upload csharp-server docker artifact
45-
uses: actions/upload-artifact@v4
45+
uses: actions/upload-artifact@v6
4646
with:
4747
path: "server/Dockerfile"
4848
name: server-csharp-docker-${{ inputs.version }}

.github/actions/create-lines-of-code-report/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
run: zip lines-of-code-report.json.zip lines-of-code-report.json
3333
- name: "Upload CLOC report as an artefact"
3434
if: ${{ !env.ACT }}
35-
uses: actions/upload-artifact@v4
35+
uses: actions/upload-artifact@v6
3636
with:
3737
name: lines-of-code-report.json.zip
3838
path: ./lines-of-code-report.json.zip
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: E2E tests
2+
description: "Run end-to-end tests for this repo"
3+
4+
runs:
5+
using: "composite"
6+
7+
steps:
8+
- name: Install poetry and e2e test dependencies
9+
shell: bash
10+
run: |
11+
pipx install poetry
12+
cd tests/e2e-tests && poetry install
13+
14+
- name: Run e2e tests
15+
shell: bash
16+
run: |
17+
echo "$INTERNAL_DEV_TEST_PEM" > "${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
18+
chmod 600 "${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
19+
export PROXY_NAME=nhs-notify-supplier--internal-dev--nhs-notify-supplier
20+
export API_ENVIRONMENT=internal-dev
21+
export NON_PROD_PRIVATE_KEY="${GITHUB_WORKSPACE}/internal-dev-test-1.pem"
22+
make .internal-dev-test

.github/actions/lint-terraform/action.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ inputs:
77
runs:
88
using: "composite"
99
steps:
10+
- name: "Install Terraform binary"
11+
shell: bash
12+
run: |
13+
asdf plugin add terraform || true
14+
asdf install terraform || true
1015
- name: "Check Terraform format"
1116
shell: bash
1217
run: |
1318
check_only=true scripts/githooks/check-terraform-format.sh
1419
- name: "Validate Terraform"
1520
shell: bash
1621
run: |
17-
stacks=${{ inputs.root-modules }}
18-
for dir in $(find infrastructure/environments -maxdepth 1 -mindepth 1 -type d; echo ${stacks//,/$'\n'}); do
19-
dir=$dir opts='-backend=false' make terraform-init
20-
dir=$dir make terraform-validate
21-
done
22+
make terraform-validate-all

0 commit comments

Comments
 (0)