Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
fd36993
feat: scaffold app with cdk
tstephen-nhs Mar 19, 2026
00aaa8b
chore: migrate statemachine to JSONata
tstephen-nhs Mar 20, 2026
9f6335f
chore: further json path -> jsonata
tstephen-nhs Mar 24, 2026
500749f
chore: log and continue if TC params not present
tstephen-nhs Mar 24, 2026
cac5d12
fix: no allow TS imports as still on node module resolution
tstephen-nhs Mar 24, 2026
f794c59
fix: typo
tstephen-nhs Mar 24, 2026
b9d472a
fix: make dependencies
tstephen-nhs Mar 24, 2026
05c4121
test: minimal fail-fast cdk synth test
tstephen-nhs Mar 24, 2026
2db5194
docs: example .env file
tstephen-nhs Mar 24, 2026
ebdbb2b
fix: non-prod spine and ss hosts
tstephen-nhs Mar 24, 2026
f11308e
chore: npm audit fix
tstephen-nhs Mar 27, 2026
0f407d8
chore: test latest eps-cdk-utils
tstephen-nhs Mar 30, 2026
c1c9613
feat: adopt cdk parameters construct
tstephen-nhs Mar 30, 2026
461aa46
fix: use revised parameters construct
tstephen-nhs Mar 30, 2026
dbecf32
chore: add missing file, sane defaults for TC params
tstephen-nhs Mar 30, 2026
94a33a8
feat: SSv3 API key from existing secret by name, not ARN
tstephen-nhs Mar 31, 2026
6cc0895
feat: sandbox app
tstephen-nhs Apr 1, 2026
3147b3a
fix: getConfigFromEnvVar calls
tstephen-nhs Apr 1, 2026
5e83527
ops: cdk workflows, currently both cdk and sam
tstephen-nhs Apr 2, 2026
fbfdc07
ops: introduce toggle between sam and cdk
tstephen-nhs Apr 2, 2026
41bf0e8
feat: alarms
tstephen-nhs Apr 2, 2026
7e92406
ops: tmp add cdk-utils tarball
tstephen-nhs Apr 2, 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
35 changes: 35 additions & 0 deletions .github/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Install dependencies"
description: "Install dependencies including caching of npm packages"

inputs:
npm-required:
description: "Set to true if npm dependencies are already installed"
required: false
default: "true"
GITHUB_TOKEN:
description: "GitHub token to access private npm packages"
required: true

runs:
using: "composite"
steps:
- name: Setting up .npmrc
if: ${{ inputs.npm-required == 'true' }}
env:
NODE_AUTH_TOKEN: ${{ inputs.GITHUB_TOKEN }}
shell: bash
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: Cache npm dependencies
if: ${{ inputs.npm-required == 'true' }}
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: make install
if: ${{ inputs.npm-required == 'true' }}
shell: bash
run: make install
66 changes: 66 additions & 0 deletions .github/workflows/cdk_package_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: cdk package code

on:
workflow_call:
inputs:
pinned_image:
type: string
required: true

jobs:
package_code:
runs-on: ubuntu-22.04
container:
image: ${{ inputs.pinned_image }}
options: --user 1001:1001 --group-add 128
defaults:
run:
shell: bash
permissions:
id-token: write
contents: read
packages: read
steps:
- name: copy .tool-versions
run: |
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
cp /home/vscode/.tool-versions ./.tool-versions

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ github.head_ref || github.ref_name }}

- name: Setting up .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: make install and compile
run: |
make install
make compile

- name: download the get secrets lambda layer
run: |
make download-get-secrets-layer

- name: Tar files
run: |
tar -cf artifact.tar \
.github \
packages \
node_modules \
package.json \
package-lock.json \
tsconfig.defaults.json \
tsconfig.build.json \
Makefile

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
name: upload build artifact
with:
name: build_artifact
path: artifact.tar
Loading
Loading