Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
822be28
VIA-832 TS/DB Moved non-personalised vaccine content to dedicated com…
terence-sheppard-nhs Mar 4, 2026
1486599
VIA-832 TS/DB Extract More Information section to dedicated component
donna-belsey-nhs Mar 5, 2026
b922f29
VIA-832 TS/DB Moved FindOutMoreLink component to MoreInformationSection
terence-sheppard-nhs Mar 5, 2026
6a4b6a9
VIA-832 TS/DB Refactor Campaign states, extract campaign logic from V…
donna-belsey-nhs Mar 5, 2026
76e05bb
VIA-832 Refactor: move ShowHowToGetExpander logic into MoreInformatio…
donna-belsey-nhs Mar 6, 2026
8923959
VIA-832 Refactor: Move 'howToGet' fallback into components that use it
donna-belsey-nhs Mar 6, 2026
0d8f23d
VIA-836 Set node version in snapshot test job
donna-belsey-nhs Mar 13, 2026
3ff9c52
VIA-836 Set node version in main build and test pipelines
donna-belsey-nhs Mar 13, 2026
c03d86e
VIA-836 Set nodejs version in Scheduled Assurance pipelines
donna-belsey-nhs Mar 13, 2026
b98a3f9
VIA-836 Detect and set nodejs version after git checkout
donna-belsey-nhs Mar 13, 2026
82b81da
VIA-912: Fixed double click logout
kieran-broomhall-nhs Mar 23, 2026
26f671f
VIA-831 LC flush hydrator log to capture final entry (#606)
liming-cheung-nhs Mar 27, 2026
3d1a97c
VIA-837 Change the number of retries for ssm to 4 (#621)
terence-sheppard-nhs Apr 1, 2026
efe32fa
VIA 685: NextJS and Node version upgrade (#584)
kieran-broomhall-nhs Apr 9, 2026
dca273e
VIA-654: Removed unused SSM params and updated app env var
kieran-broomhall-nhs Apr 20, 2026
e7367e0
VIA-654: Removed v1 from github actions
kieran-broomhall-nhs Apr 20, 2026
8caab08
VIA-654: Removed withSsmPrefix from test data builder
kieran-broomhall-nhs Apr 20, 2026
f994bee
VIA-654: Removed remaining v1 from github actions
kieran-broomhall-nhs Apr 21, 2026
415d847
VIA-933 TS Log URL for all NextAuth auth endpoints, add nextUrl to lo…
terence-sheppard-nhs Apr 22, 2026
d63fc60
VIA-647 AJ/TS RSV eligibility update for 1 April, 2026
kieran-broomhall-nhs Apr 15, 2026
3a6be04
VIA-930 & VIA-647: Add support for care headers in RSV vaccine
kieran-broomhall-nhs Apr 16, 2026
9d65c5b
VIA-930: Refactor logic for extract HTML
kieran-broomhall-nhs Apr 16, 2026
6f3abb9
VIA-982: Fix merge issues
kieran-broomhall-nhs Apr 29, 2026
9ef9469
VIA-982 Update package.json and package-lock.json
sophie-poole-nhs Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ AUTH_SECRET=some-random-secret-works
# Playwright tests
TEST_APP_URL=https://localhost:3000/check-and-book-vaccinations
TEST_NHS_APP_URL=https://<fake-sso-app>/auth/login?vita=https://localhost:3000
USE_FAKE_AUTH=false
TEST_NHS_APP_USERNAME=
TEST_NHS_APP_PASSWORD=
TEST_NBS_APP_USERNAME=
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/run-contract-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ runs:
ref: ${{ inputs.target_ref }}
path: "code-for-contract-tests"

- name: "Read nodejs version from .tool-versions"
shell: bash
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

- name: "Setup nodejs ${{ steps.variables.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ steps.variables.outputs.nodejs_version }}

- name: "Cache node modules"
uses: actions/cache@v4
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/run-e2e-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ runs:
ref: ${{ inputs.checkout_ref }}
path: "code-for-e2e-tests"

- name: "Read nodejs version from .tool-versions"
shell: bash
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

- name: "Setup nodejs ${{ steps.variables.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ steps.variables.outputs.nodejs_version }}

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/run-nbs-e2e-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ runs:
ref: ${{ inputs.checkout_ref }}
path: "code-for-e2e-tests"

- name: "Read nodejs version from .tool-versions"
shell: bash
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

- name: "Setup nodejs ${{ steps.variables.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ steps.variables.outputs.nodejs_version }}

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/actions/run-snapshot-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ runs:
ref: ${{ inputs.checkout_ref }}
path: "code-for-snapshot-tests"

- name: "Read nodejs version from .tool-versions"
shell: bash
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

- name: "Setup nodejs ${{ steps.variables.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ steps.variables.outputs.nodejs_version }}

- name: "Configure AWS credentials"
uses: aws-actions/configure-aws-credentials@v5
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ updates:
prettier:
patterns: [ "prettier", "prettier*", "*prettier", "*prettier*" ]
ignore:
- dependency-name: "next"
versions: [ ">=16.0.0" ]
- dependency-name: "eslint-config-next"
versions: [ ">=16.0.0" ]
- dependency-name: "eslint"
versions: [ ">=10.0.0" ]
cooldown:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cicd-1-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,5 @@ jobs:
with:
environment: "dev"
checkout_ref: "${{ github.sha }}"
nodejs_version: "${{ needs.metadata.outputs.nodejs_version }}"
secrets: inherit
21 changes: 20 additions & 1 deletion .github/workflows/cicd-10-scheduled-nbs-assurance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ on:
workflow_dispatch: {}

jobs:
metadata:
name: "Set CI/CD metadata"
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
nodejs_version: ${{ steps.variables.outputs.nodejs_version }}
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Set CI/CD variables"
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

run-elid-api-tests:
# Only call the tests for preprod environment
# - ensures EliD's database is loaded with expected test scenarios
Expand Down Expand Up @@ -35,7 +49,7 @@ jobs:
environment:
name: "preprod"

needs: [ run-elid-api-tests ]
needs: [ metadata, run-elid-api-tests ]
if: ${{ !cancelled() }}
steps:
- name: "Checkout main branch"
Expand All @@ -53,6 +67,11 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v6

- name: "Setup nodejs ${{ needs.metadata.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ needs.metadata.outputs.nodejs_version }}

- name: "Deploy version ${{ steps.get-latest-tag-name.outputs.value }} to (preprod)"
timeout-minutes: 10
uses: ./.github/actions/deploy
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/cicd-11-run-snapshot-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,29 @@ env:
AWS_REGION: eu-west-2

jobs:

#################################################
# Set up metadata for the jobs
#################################################

metadata:
name: "Set CI/CD metadata"
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
nodejs_version: ${{ steps.variables.outputs.nodejs_version }}
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Set CI/CD variables"
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

run-snapshot-tests:
name: "Snapshot tests"
runs-on: "ubuntu-latest"
needs: [ metadata ]
timeout-minutes: 30
concurrency:
group: "preprod-env"
Expand All @@ -27,6 +47,11 @@ jobs:
fetch-depth: 0
ref: "main"

- name: "Setup nodejs ${{ needs.metadata.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ needs.metadata.outputs.nodejs_version }}

- name: "Configure AWS credentials"
uses: aws-actions/configure-aws-credentials@v5
with:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/cicd-3-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ jobs:
# Deploy action - download artefacts and deploy to AWS
#############################################################

metadata:
name: "Set CI/CD metadata"
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
nodejs_version: ${{ steps.variables.outputs.nodejs_version }}
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Set CI/CD variables"
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

deploy-action:
name: "Deploy ${{ github.ref_name }} to (${{ github.event.inputs.environment }})"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,9 +71,10 @@ jobs:
acceptance-stage:
name: "Acceptance stage (dev/preprod only)"
if: ${{ contains(fromJSON('["dev","preprod"]'), github.event.inputs.environment) }}
needs: [ deploy-action ]
needs: [ metadata, deploy-action ]
uses: ./.github/workflows/stage-5-acceptance.yaml
with:
environment: ${{ github.event.inputs.environment}}
checkout_ref: ${{ github.ref_name }}
nodejs_version: ${{ needs.metadata.outputs.nodejs_version }}
secrets: inherit
29 changes: 27 additions & 2 deletions .github/workflows/cicd-9-scheduled-assurance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ env:
R2_RELEASE_BRANCH: "release/v2.0"

jobs:

metadata:
name: "Set CI/CD metadata"
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
nodejs_version: ${{ steps.variables.outputs.nodejs_version }}
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Set CI/CD variables"
id: variables
run: |
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT

##########################################################
# EliD API tests - to load their DB with test scenarios
##########################################################
Expand Down Expand Up @@ -44,14 +59,19 @@ jobs:
environment:
name: "preprod"

needs: [ run-elid-api-tests ]
needs: [ metadata, run-elid-api-tests ]
if: ${{ !cancelled() && (github.event_name=='schedule' || (github.event_name=='workflow_dispatch' && (inputs.release=='All' || inputs.release=='Latest R2 tag'))) }}
steps:
- name: "Checkout code"
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: "Setup nodejs ${{ needs.metadata.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ needs.metadata.outputs.nodejs_version }}

- name: "Get latest tag name on ${{ env.R2_RELEASE_BRANCH }} branch"
id: get-latest-tag-name
run: |
Expand Down Expand Up @@ -152,7 +172,7 @@ jobs:
environment:
name: "preprod"

needs: [ deploy-and-test-r2 ]
needs: [ metadata, deploy-and-test-r2 ]
if: ${{ !cancelled() && (github.event_name=='schedule' || (github.event_name=='workflow_dispatch' && (inputs.release=='All' || inputs.release=='Latest main tag'))) }}
steps:
- name: "Checkout main branch"
Expand All @@ -161,6 +181,11 @@ jobs:
fetch-depth: 0
ref: "main"

- name: "Setup nodejs ${{ needs.metadata.outputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ needs.metadata.outputs.nodejs_version }}

- name: "Get latest tag name on main branch"
id: get-latest-tag-name
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stage-1-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v5
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/stage-2-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v5
Expand All @@ -61,6 +65,10 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v5
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stage-3-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v6
- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v5
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/stage-5-acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
required: false
type: boolean
default: false
nodejs_version:
description: "Node.js version, set by the CI/CD pipeline workflow"
required: true
type: string

env:
AWS_REGION: eu-west-2
Expand Down Expand Up @@ -59,6 +63,11 @@ jobs:
with:
ref: ${{ inputs.checkout_ref }}

- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}

- name: "Configure AWS credentials"
uses: aws-actions/configure-aws-credentials@v5
with:
Expand Down Expand Up @@ -105,6 +114,11 @@ jobs:
with:
ref: ${{ inputs.checkout_ref }}

- name: "Setup nodejs ${{ inputs.nodejs_version }}"
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.nodejs_version }}

- name: "Run contract tests for version ${{ inputs.checkout_ref }} (EliD:sandpit, EliD:mocked)"
timeout-minutes: 3
uses: ./.github/actions/run-contract-tests
Expand Down
5 changes: 1 addition & 4 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# This file is for you! Please, updated to the versions agreed by your team.

terraform 1.14.1
pre-commit 4.5.0
vale 3.13.0
nodejs 22.13.1
nodejs 24.14.0
gitleaks 8.30.1

# ==============================================================================
# The section below is reserved for Docker image versions.

# TODO: Move this section - consider using a different file for the repository template dependencies.
# docker/ghcr.io/anchore/grype v0.106.0@sha256:f6fa9ac31f97591957edb13b7c7c24fd172cf11b6e2a2df5dd3464ebb8eefefc # SEE: https://github.com/anchore/grype/pkgs/container/grype
# docker/ghcr.io/anchore/syft v1.41.0@sha256:046f0c3b14e4451a1d0cd2f367ce3ba3bd653cbd23a7749556f46592d0281a0d # SEE: https://github.com/anchore/syft/pkgs/container/syft
Expand Down
Loading
Loading