Updated routes layout #6948
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cookieplone | |
| on: [push, pull_request] | |
| env: | |
| python-version: '3.13' | |
| CYPRESS_RETRIES: 2 | |
| jobs: | |
| seven: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| name: Seven Cookieplone | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/acceptance_tests_node_env_setup | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ env.python-version }} | |
| enable-cache: false | |
| - name: Generate Cookieplone-based frontend addon | |
| run: | | |
| uvx cookieplone seven_addon --no-input | |
| - name: Install generated package | |
| working-directory: seven-add-on | |
| run: | | |
| pnpm dlx mrs-developer missdev --no-config --fetch-https | |
| if [[ "${GITHUB_REF#refs/heads/}" != "seven" ]]; then | |
| (cd core && git fetch --depth 1 origin ${GITHUB_REF#refs/heads/}:${GITHUB_REF#refs/heads/} && git checkout ${GITHUB_REF#refs/heads/}) | |
| fi | |
| pnpm i | |
| make build-deps | |
| - name: Run linters in the generated package | |
| working-directory: seven-add-on | |
| run: make lint | |
| - name: Run formatters in the generated package | |
| working-directory: seven-add-on | |
| run: make format | |
| - uses: JarvusInnovations/background-action@v1 | |
| name: Start Servers and wait for them to start | |
| with: | |
| run: | | |
| make ci-acceptance-backend-start & | |
| make acceptance-frontend-prod-start & | |
| wait-on: | | |
| http-get://localhost:55001/plone | |
| http://localhost:3000 | |
| tail: true | |
| log-output-resume: stderr | |
| wait-for: 10m | |
| log-output: stderr,stdout | |
| log-output-if: failure | |
| working-directory: seven-add-on | |
| - run: make ci-acceptance-test | |
| working-directory: seven-add-on | |
| # Upload Cypress screenshots | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: apps/seven/cypress/screenshots | |
| # Upload Cypress videos | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: cypress-videos | |
| path: apps/seven/cypress/videos |