From 285dcc4da0277d36bb35881666fce786bf70aeeb Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 21 Mar 2024 11:09:43 +0100 Subject: [PATCH] Get back -ci server --- .github/workflows/acceptance.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 0e80b5b..64d3fb4 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -61,7 +61,7 @@ jobs: name: Start Servers with: run: | - make start-test-acceptance-server & + make start-test-acceptance-server-ci & make start-test-acceptance-frontend & # your step-level and job-level environment variables are available to your commands as-is # npm install will count towards the wait-for timeout diff --git a/Makefile b/Makefile index 7e46306..c8839d2 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,10 @@ start-test-acceptance-frontend: ## Start acceptance frontend in prod mode start-test-acceptance-server: ## Start acceptance server docker run -it --rm -p 55001:55001 $(DOCKER_IMAGE_ACCEPTANCE) +.PHONY: start-test-acceptance-server-ci +start-test-acceptance-server-ci: ## Start acceptance server in CI mode (no terminal attached) + docker run -i --rm -p 55001:55001 $(DOCKER_IMAGE_ACCEPTANCE) + .PHONY: test-acceptance test-acceptance: ## Start Cypress in interactive mode pnpm --filter @plone/volto exec cypress open --config-file $(CURRENT_DIR)/cypress.config.js --config specPattern=$(CURRENT_DIR)'/cypress/tests/**/*.{js,jsx,ts,tsx}'