From 7acf3cf5beb7f0604fc9869cf80fbf961228e78f Mon Sep 17 00:00:00 2001 From: kyy Date: Thu, 7 May 2026 10:34:38 +0900 Subject: [PATCH] =?UTF-8?q?orgfront=20=EC=BD=94=EB=93=9C=EC=B2=B4=ED=81=AC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index df61eac0..78bf47fd 100644 --- a/Makefile +++ b/Makefile @@ -190,7 +190,7 @@ PLAYWRIGHT_WEBKIT_COMPLETE := $(PLAYWRIGHT_BROWSERS_PATH)/webkit-2248/INSTALLATI PLAYWRIGHT_INSTALL_ALL := sh -c 'if [ -f "$(PLAYWRIGHT_CHROMIUM_COMPLETE)" ] && [ -f "$(PLAYWRIGHT_FIREFOX_COMPLETE)" ] && [ -f "$(PLAYWRIGHT_WEBKIT_COMPLETE)" ]; then echo "Playwright browsers already installed"; else npx playwright install; fi' PLAYWRIGHT_INSTALL_CHROMIUM := sh -c 'if [ -f "$(PLAYWRIGHT_CHROMIUM_COMPLETE)" ]; then echo "Playwright chromium already installed"; else npx playwright install chromium; fi' -.PHONY: code-check code-check-lint code-check-test-jobs code-check-i18n code-check-i18n-values code-check-go-lint code-check-sync-userfront-locales code-check-userfront-install code-check-userfront-lint code-check-front-lint code-check-backend-tests code-check-userfront-tests code-check-adminfront-tests code-check-devfront-tests code-check-userfront-e2e-tests +.PHONY: code-check code-check-lint code-check-test-jobs code-check-i18n code-check-i18n-values code-check-go-lint code-check-sync-userfront-locales code-check-userfront-install code-check-userfront-lint code-check-front-lint code-check-backend-tests code-check-userfront-tests code-check-adminfront-tests code-check-devfront-tests code-check-orgfront-tests code-check-userfront-e2e-tests CODE_CHECK_TEST_JOBS ?= 1 PLAYWRIGHT_WORKERS ?= 1 @@ -208,7 +208,8 @@ code-check-test-jobs: code-check-userfront-tests \ code-check-userfront-e2e-tests \ code-check-adminfront-tests \ - code-check-devfront-tests + code-check-devfront-tests \ + code-check-orgfront-tests code-check-i18n: @echo "==> i18n resource check" @@ -263,6 +264,11 @@ code-check-front-lint: cd devfront && npm ci --ignore-scripts cd devfront && npx biome check . --formatter-enabled=false --organize-imports-enabled=false cd devfront && npx biome check . --linter-enabled=false --organize-imports-enabled=false + @echo "==> orgfront biome lint/format check" + rm -rf orgfront/playwright-report orgfront/test-results + cd orgfront && npm ci --ignore-scripts + cd orgfront && npx biome check . --formatter-enabled=false --organize-imports-enabled=false + cd orgfront && npx biome check . --linter-enabled=false --organize-imports-enabled=false code-check-backend-tests: @echo "==> backend tests" @@ -310,6 +316,22 @@ code-check-devfront-tests: [ -d devfront/test-results ] && cp -R devfront/test-results reports/devfront/ || true; \ exit $$status +code-check-orgfront-tests: + @echo "==> orgfront tests" + @mkdir -p reports/orgfront + @rm -rf reports/orgfront/playwright-report reports/orgfront/test-results + @status=0; \ + (cd orgfront && npm ci --ignore-scripts) || status=$$?; \ + if [ $$status -eq 0 ]; then \ + (cd orgfront && $(PLAYWRIGHT_INSTALL_ALL)) || status=$$?; \ + fi; \ + if [ $$status -eq 0 ]; then \ + (cd orgfront && PLAYWRIGHT_WORKERS=$(PLAYWRIGHT_WORKERS) npm test) || status=$$?; \ + fi; \ + [ -d orgfront/playwright-report ] && cp -R orgfront/playwright-report reports/orgfront/ || true; \ + [ -d orgfront/test-results ] && cp -R orgfront/test-results reports/orgfront/ || true; \ + exit $$status + code-check-userfront-e2e-tests: @echo "==> userfront wasm playwright e2e tests (isolated workspace)" @mkdir -p reports/userfront-e2e