From 594b170826cb20ee48bde9c55940b61ddcf725a7 Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Tue, 26 May 2026 16:26:12 -0600 Subject: [PATCH] fix(ci): fix cd not persisting across script lines --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cd0c5a..1a2fa9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -79,8 +79,7 @@ lint-frontend: - frontend/node_modules/ policy: pull script: - - cd frontend && test -d node_modules || npm ci - - cd frontend && npx eslint src/ --ignore-pattern '**/__tests__/**' --ignore-pattern '**/*.test.js' --max-warnings 25 + - cd frontend && (test -d node_modules || npm ci) && npx eslint src/ --ignore-pattern '**/__tests__/**' --ignore-pattern '**/*.test.js' --max-warnings 25 needs: - install-frontend @@ -114,8 +113,7 @@ test-frontend: - frontend/node_modules/ policy: pull script: - - cd frontend && test -d node_modules || npm ci - - cd frontend && CI=true npx react-scripts test --watchAll=false --ci + - cd frontend && (test -d node_modules || npm ci) && CI=true npx react-scripts test --watchAll=false --ci timeout: 5 minutes needs: - install-frontend @@ -133,8 +131,7 @@ build-frontend: - frontend/node_modules/ policy: pull script: - - cd frontend && test -d node_modules || npm ci - - cd frontend && CI=false REACT_APP_API_BASE=/api REACT_APP_API_HOST="" npm run build + - cd frontend && (test -d node_modules || npm ci) && CI=false REACT_APP_API_BASE=/api REACT_APP_API_HOST="" npm run build artifacts: paths: - frontend/build/