Skip to content

Commit c443b66

Browse files
Merge branch 'main' into feature/APIM-tests
2 parents c99fc2c + c8a3e39 commit c443b66

File tree

321 files changed

+26858
-19713
lines changed

Some content is hidden

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

321 files changed

+26858
-19713
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
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
8+
/infrastructure/terraform/ @NHSDigital/nhs-notify-platform @NHSDigital/nhs-notify-supplier-api-admins
9+
10+
# Root level AGENTS.md owned by platform.
11+
AGENTS.md @NHSDigital/nhs-notify-platform
912

1013
# Codeowners must be final check
1114
/.github/CODEOWNERS @NHSDigital/nhs-notify-code-owners

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
1013
- name: Checkout
1114
uses: actions/checkout@v4
1215
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 18
17+
node-version: 22
18+
registry-url: 'https://npm.pkg.github.com'
1519
- name: Npm cli install
1620
working-directory: .
21+
env:
22+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
1723
run: npm ci
1824
shell: bash
1925
- name: Setup Ruby

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
1013
- name: Checkout
1114
uses: actions/checkout@v4
1215
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 24
17+
node-version: 22
18+
registry-url: 'https://npm.pkg.github.com'
1519

1620
- name: Npm install
1721
working-directory: .
22+
env:
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
1824
run: npm ci
1925
shell: bash
2026

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inputs:
2828
nodejs_version:
2929
description: "Node.js version, set by the CI/CD pipeline workflow"
3030
required: true
31+
NODE_AUTH_TOKEN:
32+
description: "Token for access to github package registry"
33+
required: true
3134

3235
runs:
3336
using: composite
@@ -38,6 +41,7 @@ runs:
3841
- uses: actions/setup-node@v4
3942
with:
4043
node-version: ${{ inputs.nodejs_version }}
44+
registry-url: 'https://npm.pkg.github.com'
4145

4246
- name: "Cache node_modules"
4347
uses: actions/cache@v4
@@ -50,6 +54,8 @@ runs:
5054
5155
- name: Npm install
5256
working-directory: .
57+
env:
58+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
5359
run: npm ci
5460
shell: bash
5561

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
8+
NODE_AUTH_TOKEN:
9+
description: "Token for access to github package registry"
10+
required: true
711
runs:
812
using: composite
913

@@ -12,10 +16,13 @@ runs:
1216
uses: actions/checkout@v4
1317
- uses: actions/setup-node@v4
1418
with:
15-
node-version: 24
19+
node-version: 22
20+
registry-url: 'https://npm.pkg.github.com'
1621

1722
- name: Npm install
1823
working-directory: .
24+
env:
25+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
1926
run: npm ci
2027
shell: bash
2128

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
1013
- name: Checkout
1114
uses: actions/checkout@v4
1215
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 18
17+
node-version: 22
18+
registry-url: 'https://npm.pkg.github.com'
1519

1620
- name: Npm install
1721
working-directory: .
22+
env:
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
1824
run: npm ci
1925
shell: bash
2026

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ inputs:
44
version:
55
description: "Version number"
66
required: true
7+
NODE_AUTH_TOKEN:
8+
description: "Token for access to github package registry"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
1013
- name: Checkout
1114
uses: actions/checkout@v4
1215
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 24
17+
node-version: 22
18+
registry-url: 'https://npm.pkg.github.com'
1519

1620
- name: Npm install
1721
working-directory: .
22+
env:
23+
NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }}
1824
run: npm ci
1925
shell: bash
2026

.github/workflows/manual-proxy-environment-deploy.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121

2222
permissions:
2323
contents: read
24+
packages: read
2425

2526
jobs:
2627
deploy-environment:
@@ -32,10 +33,12 @@ jobs:
3233

3334
- uses: actions/setup-node@v6
3435
with:
35-
node-version: 24
36+
node-version: 22
3637

3738
- name: Npm install
3839
working-directory: .
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3942
run: npm ci
4043
shell: bash
4144

@@ -87,3 +90,4 @@ jobs:
8790
runId: "${{ github.run_id }}"
8891
buildSandbox: ${{ inputs.build_sandbox }}
8992
releaseVersion: ${{ github.ref_name }}
93+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr_closed.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@ jobs:
8181
uses: actions/setup-node@v4
8282
with:
8383
node-version: ${{ inputs.nodejs_version }}
84+
registry-url: 'https://npm.pkg.github.com'
8485

8586
- name: check if local version differs from latest published version
8687
id: check-version
88+
env:
89+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8790
run: |
8891
published_version=$(npm view @nhsdigital/nhs-notify-event-schemas-supplier-api --json 2>/dev/null | jq -r '.["dist-tags"].latest // "null"')
8992
echo "Published version: $published_version"
@@ -99,7 +102,7 @@ jobs:
99102
echo "version_changed=true" >> $GITHUB_OUTPUT
100103
fi
101104
102-
test-contract-provider:
105+
test-contract:
103106
name: "Test contracts (provider)"
104107
needs: check-event-schemas-version-change
105108
if: needs.check-event-schemas-version-change.outputs.version_changed == 'true'
@@ -114,18 +117,21 @@ jobs:
114117
uses: actions/setup-node@v4
115118
with:
116119
node-version: ${{ inputs.nodejs_version }}
120+
registry-url: 'https://npm.pkg.github.com'
117121
- name: "Install dependencies"
122+
env:
123+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118124
run: npm ci
119125
- name: "Run provider contract tests"
120-
run: make test-contract-provider
126+
run: make test-contract
121127
env:
122128
GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123129

124130
publish-event-schemas:
125131
name: Publish event schemas package to GitHub package registry
126132
needs:
127133
- check-event-schemas-version-change
128-
- test-contract-provider
134+
- test-contract
129135
if: needs.check-event-schemas-version-change.outputs.version_changed == 'true'
130136
runs-on: ubuntu-latest
131137
permissions:
@@ -143,6 +149,8 @@ jobs:
143149
registry-url: 'https://npm.pkg.github.com'
144150

145151
- name: Install dependencies
152+
env:
153+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146154
run: npm ci
147155

148156
- name: Publish to GitHub Packages

.github/workflows/pr_create_dynamic_env.yaml

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

0 commit comments

Comments
 (0)