From 9f2545877a6bc9338ac7722375603750deb5e6c8 Mon Sep 17 00:00:00 2001 From: Joe Fong Date: Mon, 9 Sep 2024 11:44:03 +0100 Subject: [PATCH] add a new build spec for build-frontend-staging, remove frontend install & build step from build.yml --- buildspec/build/build-frontend-staging.yml | 19 +++++++++++++++++++ buildspec/build/build.yml | 4 +--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 buildspec/build/build-frontend-staging.yml diff --git a/buildspec/build/build-frontend-staging.yml b/buildspec/build/build-frontend-staging.yml new file mode 100644 index 0000000000..722d676d72 --- /dev/null +++ b/buildspec/build/build-frontend-staging.yml @@ -0,0 +1,19 @@ +version: 0.2 + +env: + variables: + NODE_OPTIONS: "--max_old_space_size=8192" + +phases: + install: + runtime-versions: + nodejs: 18 + build: + commands: + - echo $CODEBUILD_RESOLVED_SOURCE_VERSION > commit_hash.txt + - cd frontend && npm ci + - npm run build:test + +artifacts: + files: + - '**/*' diff --git a/buildspec/build/build.yml b/buildspec/build/build.yml index 73878ed0e1..5054c9d870 100644 --- a/buildspec/build/build.yml +++ b/buildspec/build/build.yml @@ -11,9 +11,7 @@ phases: build: commands: - echo $CODEBUILD_RESOLVED_SOURCE_VERSION > commit_hash.txt - - cd frontend && npm ci - - npm run build:test - - cd ../backend && npm ci + - cd backend && npm ci artifacts: files: