Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ runs:
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Npm cli install
node-version: 22
cache: "npm"
cache-dependency-path: "./docs/package-lock.json"
- name: Install dependencies
working-directory: ./docs
run: npm ci
shell: bash
Expand Down
44 changes: 36 additions & 8 deletions .github/workflows/stage-2-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,19 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.17.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: "Repo setup"
run: |
npm ci
pnpm install --frozen-lockfile
- name: "Generate dependencies"
run: |
npm run generate-dependencies --workspaces --if-present
pnpm run generate-dependencies
git diff --exit-code
test-unit:
name: "Unit tests"
Expand All @@ -62,12 +69,19 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.17.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: "Repo setup"
run: |
npm ci
pnpm install --frozen-lockfile
- name: "Generate dependencies"
run: |
npm run generate-dependencies --workspaces --if-present
pnpm run generate-dependencies
- name: "Run unit test suite"
run: |
make test-unit
Expand All @@ -90,12 +104,19 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.17.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: "Repo setup"
run: |
npm ci
pnpm install --frozen-lockfile
- name: "Generate dependencies"
run: |
npm run generate-dependencies --workspaces --if-present
pnpm run generate-dependencies
- name: "Run linting"
run: |
make test-lint
Expand All @@ -106,12 +127,19 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.17.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: "Repo setup"
run: |
npm ci
pnpm install --frozen-lockfile
- name: "Generate dependencies"
run: |
npm run generate-dependencies --workspaces --if-present
pnpm run generate-dependencies
- name: "Run typecheck"
run: |
make test-typecheck
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version.json
# Please, add your custom content below!

# dependencies
node_modules
**/node_modules
.node-version
*/node_modules
/.pnp
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ act 0.2.64
gitleaks 8.24.0
jq 1.6
nodejs 22.11.0
pnpm 10.17.1
pre-commit 3.6.0
terraform 1.10.1
terraform-docs 0.19.0
trivy 0.61.0
vale 3.6.0
python 3.13.2

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

Expand Down
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,33 @@ include scripts/init.mk
# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc.

dependencies: # Install dependencies needed to build and test the project @Pipeline
# TODO: Implement installation of your project dependencies
pnpm install --frozen-lockfile
pnpm run generate-dependencies

build: # Build the project artefact @Pipeline
(cd docs && make build)
pnpm run --recursive --if-present lambda-build

publish: # Publish the project artefact @Pipeline
# TODO: Implement the artefact publishing step
# Lambda artefacts are built and packaged by Terraform during deployment
# No separate publish step required - Lambda deployment packages are created inline

deploy: # Deploy the project artefact to the target environment @Pipeline
# TODO: Implement the artefact deployment step
# Deployment is handled via Terraform in infrastructure/terraform/
# See infrastructure/terraform/components/callbacks/ for Lambda deployments
# Run: cd infrastructure/terraform && terraform apply

clean:: # Clean-up project resources (main) @Operations
rm -f .version
# TODO: Implement project resources clean-up step
rm -rf lambdas/*/dist
rm -rf scripts/*/dist
rm -rf node_modules
rm -rf lambdas/*/node_modules
rm -rf scripts/*/node_modules
rm -rf .reports
rm -rf **/.reports
rm -f .reports/lcov.info
(cd docs && make clean)

config:: _install-dependencies version # Configure development environment (main) @Configuration
(cd docs && make install)
Expand Down
Loading
Loading