Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 22, 2024
1 parent 06161a6 commit 3519fe5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ jobs:
name: Start Servers
with:
run: |
make start-backend-docker &
pnpm start &
make start-test-acceptance-server-a11y-ci &
make start-test-acceptance-frontend-a11y &
# your step-level and job-level environment variables are available to your commands as-is
# npm install will count towards the wait-for timeout
# whenever possible, move unrelated scripts to a different step
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ start-test-acceptance-frontend-dev: ## Start acceptance frontend in dev mode
start-test-acceptance-frontend: ## Start acceptance frontend in prod mode
RAZZLE_API_PATH=http://127.0.0.1:55001/plone pnpm build && pnpm start:prod

.PHONY: start-test-acceptance-frontend-a11y
start-test-acceptance-frontend-a11y: ## Start a11y acceptance frontend in prod mode
pnpm build && pnpm start:prod

.PHONY: start-test-acceptance-server
start-test-acceptance-server: ## Start acceptance server
docker run -it --rm -p 55001:55001 $(DOCKER_IMAGE_ACCEPTANCE)
Expand All @@ -81,6 +85,10 @@ start-test-acceptance-server: ## Start acceptance server
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: start-test-acceptance-server-a11y-ci
start-test-acceptance-server-a11y-ci: ## Start acceptance a11y server in CI mode (no terminal attached)
docker run -i --rm --name=backend -p 8080:8080 -e SITE=Plone -e ADDONS='$(KGS)' $(DOCKER_IMAGE)

.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/main/**/*.{js,jsx,ts,tsx}'
Expand Down

0 comments on commit 3519fe5

Please sign in to comment.