From 38df72d8421413ff4945359504bf198d7658d8aa Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Wed, 20 Mar 2024 23:45:26 +0100 Subject: [PATCH] F*ck it --- .github/workflows/acceptance.yml | 37 ++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 6a25a42..03e5a43 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -55,22 +55,27 @@ jobs: working-directory: core/packages/volto run: make cypress-install - - name: "Cypress: Acceptance tests" - uses: cypress-io/github-action@v6 - env: - BABEL_ENV: production - CYPRESS_RETRIES: 2 - with: - # working-directory: core/packages/volto - # project: ../../../. - # config-file: ../../../cypress.config.js - browser: chrome - spec: cypress/tests/**/*.{js,jsx,ts,tsx} - install: false - start: | - make start-test-acceptance-server-ci - make start-test-acceptance-frontend - wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000' + run: nohup make start-test-acceptance-server-ci & + run: nohup make start-test-acceptance-frontend & + run: pnpm --filter @plone/volto exec wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000 + run: make test-acceptance-headless + + # - name: "Cypress: Acceptance tests" + # uses: cypress-io/github-action@v6 + # env: + # BABEL_ENV: production + # CYPRESS_RETRIES: 2 + # with: + # # working-directory: core/packages/volto + # # project: ../../../. + # # config-file: ../../../cypress.config.js + # browser: chrome + # spec: cypress/tests/**/*.{js,jsx,ts,tsx} + # install: false + # start: | + # make start-test-acceptance-server-ci + # make start-test-acceptance-frontend + # wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000' # Upload Cypress screenshots - uses: actions/upload-artifact@v4