Skip to content

Commit 228ee34

Browse files
committed
Merge branch 'main' into feature/test-data-variations
2 parents b0c8f7d + f0d8593 commit 228ee34

100 files changed

Lines changed: 8004 additions & 5211 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.

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,24 @@ runs:
4646
run: npm ci
4747
shell: bash
4848

49-
- name: Build ${{ inputs.apimEnv }} oas
49+
- name: Build OAS File
5050
working-directory: .
5151
env:
5252
APIM_ENV: ${{ inputs.apimEnv }}
5353
shell: bash
5454
run: |
5555
if [ ${{ env.APIM_ENV }} == "internal-dev-sandbox" ] && [ ${{ inputs.buildSandbox }} == true ]
5656
then
57-
echo "Building sandbox OAS spec"
57+
echo "Building JSON sandbox OAS spec"
5858
make build-json-oas-spec APIM_ENV=sandbox
59+
60+
echo "Building YML sandbox OAS spec"
61+
make build-yml-oas-spec APIM_ENV=sandbox
5962
else
60-
echo "Building env specific OAS spec"
63+
echo "Building env specific JSON OAS spec"
64+
make build-json-oas-spec APIM_ENV=${{ env.APIM_ENV }}
65+
66+
echo "Building env specific YML OAS spec"
6167
make build-yml-oas-spec APIM_ENV=${{ env.APIM_ENV }}
6268
fi
6369

.github/actions/trivy-iac/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ runs:
88
run: |
99
components_exit_code=0
1010
modules_exit_code=0
11-
11+
asdf plugin add trivy || true
12+
asdf install trivy || true
1213
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/components || components_exit_code=$?
1314
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/modules || modules_exit_code=$?
1415

.github/actions/trivy-package/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ runs:
77
shell: bash
88
run: |
99
exit_code=0
10-
10+
asdf plugin add trivy || true
11+
asdf install trivy || true
1112
./scripts/terraform/trivy-scan.sh --mode package . || exit_code=$?
1213
1314
if [ $exit_code -ne 0 ]; then

.github/workflows/release_created.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ name: Github Release Created
22

33
on:
44
release:
5-
types: ["published"] # Inherits all input defaults
5+
types: ["released"] # Inherits all input defaults
6+
workflow_dispatch:
7+
inputs:
8+
releaseVersion:
9+
description: Release, tag, branch, or commit ID to be used for deployment
10+
required: false
11+
default: "main"
12+
type: string
613

714
concurrency:
815
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,7 +34,7 @@ jobs:
2734
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
2835
run: |
2936
bash .github/scripts/dispatch_internal_repo_workflow.sh \
30-
--releaseVersion "${{ github.event.release.tag_name }}" \
37+
--releaseVersion "${{ github.event.release.tag_name || inputs.releaseVersion }}" \
3138
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
3239
--targetEnvironment "main" \
3340
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
@@ -58,5 +65,5 @@ jobs:
5865
environment: "main"
5966
apimEnv: "int"
6067
runId: "${{ github.run_id }}"
61-
releaseVersion: "${{ github.event.release.tag_name }}"
68+
releaseVersion: "${{ github.event.release.tag_name || inputs.releaseVersion }}"
6269
isRelease: true

.github/workflows/stage-1-commit.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Commit stage"
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:
@@ -166,13 +169,6 @@ jobs:
166169
uses: actions/checkout@v4
167170
- name: "Setup ASDF"
168171
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
169-
- name: "Repo setup"
170-
uses: ./.github/actions/node-install
171-
with:
172-
node-version: ${{ inputs.nodejs_version }}
173-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174-
- name: "Perform Setup"
175-
uses: ./.github/actions/setup
176172
- name: "Trivy IaC Scan"
177173
uses: ./.github/actions/trivy-iac
178174
trivy-package:
@@ -188,13 +184,6 @@ jobs:
188184
uses: actions/checkout@v4
189185
- name: "Setup ASDF"
190186
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
191-
- name: "Repo setup"
192-
uses: ./.github/actions/node-install
193-
with:
194-
node-version: ${{ inputs.nodejs_version }}
195-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
196-
- name: "Perform Setup"
197-
uses: ./.github/actions/setup
198187
- name: "Trivy Package Scan"
199188
uses: ./.github/actions/trivy-package
200189
count-lines-of-code:

.github/workflows/stage-2-test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
name: "Unit tests"
7676
runs-on: ubuntu-latest
7777
timeout-minutes: 5
78+
env:
79+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7880
steps:
7981
- name: "Checkout code"
8082
uses: actions/checkout@v5
@@ -149,6 +151,8 @@ jobs:
149151
name: "Linting"
150152
runs-on: ubuntu-latest
151153
timeout-minutes: 5
154+
env:
155+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152156
steps:
153157
- name: "Checkout code"
154158
uses: actions/checkout@v5
@@ -180,6 +184,8 @@ jobs:
180184
name: "Typecheck"
181185
runs-on: ubuntu-latest
182186
timeout-minutes: 5
187+
env:
188+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183189
steps:
184190
- name: "Checkout code"
185191
uses: actions/checkout@v5

.gitleaksignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ e12407e09151898bfd8d049d57eee9db9977d56b:.github/copilot-instructions.md:generic
2222
82f6be3e657b46d8447e77cdc1894fba0b855c26:tests/component-tests/testCases/create-letter-request.spec.ts:generic-api-key:10
2323
debc75a97cfe551a69fd1e8694be483213322a9d:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
2424
777eb4047ad06b9e939a292ee18664a0ffee4f29:tests/resources/prepared-letter.json:generic-api-key:4
25+
4fa1923947bbff2387218d698d766cbb7c121a0f:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10
26+
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:npm-access-token:9
27+
d005112adcfd286c3bef076214836dbb2fe8d0b5:.npmrc:github-pat:7

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ config:: _install-dependencies version # Configure development environment (main
103103
test-component:
104104
(cd tests && npm install && npm run test:component)
105105

106+
test-performance:
107+
(cd tests && npm install && npm run test:performance)
108+
106109
version:
107110
rm -f .version
108111
make version-create-effective-file dir=.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
1.1.0-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

docs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"build": "JEKYLL_ENV=production bundle exec jekyll build --trace --config _config.yml,_config.version.yml",
1515
"debug": "JEKYLL_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec jekyll serve --config _config.yml,_config.dev.yml,_config.version.yml --limit_posts 100 --trace",
1616
"generate-includes": "./generate-includes.sh",
17+
"lint": "echo \"Documentation module has no code to lint\"",
18+
"lint:fix": "echo \"Documentation module has no code to lint\"",
1719
"test:unit": "echo \"Documentation module has no unit tests\"",
1820
"typecheck": "echo \"Documentation module has no typescript to typecheck\""
1921
},

0 commit comments

Comments
 (0)