Skip to content

Commit cc83432

Browse files
committed
Merge branch 'main' into feature/CCM-12616_mesh_poll_retrieve
2 parents ce9e182 + bfe8272 commit cc83432

File tree

369 files changed

+70472
-3349
lines changed

Some content is hidden

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

369 files changed

+70472
-3349
lines changed

.coverage

52 KB
Binary file not shown.

.devcontainer/devcontainer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"containerEnv": {
3+
"GITHUBMONITOR": "false",
4+
"MAKECONFIG": "true",
5+
"SHOWWELCOME": "true",
6+
"UPDATEFROMTEMPLATE": "false"
7+
},
8+
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded-codespaces:main",
9+
"name": "Codespaces Online Development"
10+
}

.devcontainer/nhs-notify-devcontainer-loaded/devcontainer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"SHOWWELCOME": "true",
66
"UPDATEFROMTEMPLATE": "false"
77
},
8-
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded:1.0.16",
9-
"name": "Notify Loaded Dev Container 1.0.16",
10-
"postCreateCommand": "echo My own container created",
11-
"postStartCommand": "echo My own container started"
8+
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded:1.0.17",
9+
"name": "Notify Loaded 1.0.17",
10+
"postStartCommand": "mkdir -p ~/.gnupg && echo '## 1-day timeout' > ~/.gnupg/gpg-agent.conf && echo 'default-cache-ttl 86400' >> ~/.gnupg/gpg-agent.conf && echo 'max-cache-ttl 86400' >> ~/.gnupg/gpg-agent.conf && gpg-connect-agent reloadagent /bye 2>/dev/null || true"
1211
}

.devcontainer/old/devcontainer.json

Lines changed: 0 additions & 104 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Acceptance tests
2+
description: "Run acceptance tests for this repo"
3+
4+
inputs:
5+
testType:
6+
description: Type of test to run
7+
required: true
8+
default: main
9+
10+
targetEnvironment:
11+
description: Name of the environment under test
12+
required: true
13+
default: main
14+
15+
targetAccountGroup:
16+
description: Name of the account group under test
17+
default: nhs-notify-digital-letters-dev
18+
required: true
19+
20+
targetComponent:
21+
description: Name of the component under test
22+
default: dl
23+
24+
runs:
25+
using: "composite"
26+
27+
steps:
28+
- name: "Repo setup"
29+
shell: bash
30+
run: |
31+
npm ci
32+
33+
- name: Run test - ${{ inputs.testType }}
34+
shell: bash
35+
run: |
36+
set -euo pipefail
37+
case "$TEST_TYPE" in
38+
main|integration|unit)
39+
make "test-$TEST_TYPE"
40+
;;
41+
*)
42+
echo "Invalid testType: $TEST_TYPE" >&2
43+
exit 1
44+
;;
45+
esac
46+
env:
47+
TEST_TYPE: ${{ inputs.testType }}
48+
ENVIRONMENT: ${{ inputs.targetEnvironment }}
49+
50+
- name: Archive integration test results
51+
if: ${{ inputs.testType == 'integration' }}
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: Integration test report
55+
path: "tests/playwright/playwright-report"

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

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ runs:
88
using: "composite"
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
11+
uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
1313
with:
14-
node-version: 18
14+
node-version: 24
1515
- name: Npm cli install
1616
working-directory: ./docs
1717
run: npm ci
1818
shell: bash
1919
- name: Setup Ruby
20-
uses: ruby/setup-ruby@v1.180.1
20+
uses: ruby/setup-ruby@v1.267.0
2121
with:
22-
ruby-version: "3.2" # Not needed with a .ruby-version file
23-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24-
cache-version: 0 # Increment this number if you need to re-download cached gems
22+
ruby-version: "3.4.7" # Not needed with a .ruby-version file
23+
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
24+
#cache-version: 0 # Increment this number if you need to re-download cached gems
2525
working-directory: "./docs"
2626
- name: Setup Pages
2727
id: pages
@@ -30,7 +30,7 @@ runs:
3030
working-directory: ./docs
3131
# Outputs to the './_site' directory by default
3232
shell: bash
33-
run: make build BASE_URL="${{ steps.pages.outputs.base_path }}" VERSION="${{ inputs.version }}"
33+
run: make build-ci BASE_URL=${{ steps.pages.outputs.base_path }} VERSION=${{ inputs.version }}
3434
#run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
3535
env:
3636
JEKYLL_ENV: production
@@ -40,3 +40,13 @@ runs:
4040
with:
4141
path: "docs/_site/"
4242
name: jekyll-docs-${{ inputs.version }}
43+
44+
- name: tar schema
45+
run: tar -cvf artifact.tar src/cloudeventjekylldocs/output/schemas
46+
shell: bash
47+
48+
- name: Upload artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
path: "artifact.tar"
52+
name: schemas-${{ inputs.version }}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ runs:
1414
node-version: 18
1515

1616
- name: Make Config
17-
working-directory: ./schemas
17+
working-directory: ./src/cloudeventjekylldocs
1818
shell: bash
1919
run: make config
2020

2121
- name: Make Build
22-
working-directory: ./schemas
22+
working-directory: ./src/cloudeventjekylldocs
2323
shell: bash
2424
run: make build
2525

26+
- name: tar schema
27+
run: tar -cvf artifact.tar src/cloudeventjekylldocs/output/schemas"
28+
shell: bash
29+
2630
- name: Upload artifact
27-
uses: actions/upload-pages-artifact@v3
31+
uses: actions/upload-artifact@v4
2832
with:
29-
path: "schemas/output/"
33+
path: "artifact.tar"
3034
name: schemas-${{ inputs.version }}

.github/actions/test-types.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
"integration"
3+
]

0 commit comments

Comments
 (0)