Added contained
class if isContainer
prop is passed (from contain…
#2715
Workflow file for this run
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" | |
jobs: | |
volto: | |
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: Volto Cookieplone | |
timeout-minutes: 45 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [22.x] | |
env: | |
project-directory: volto-add-on | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo "Current branch is ${GITHUB_REF#refs/heads/}" | |
- name: Set up Node.js environment | |
uses: ./.github/actions/node_env_setup | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Generate Cookieplone-based frontend addon | |
run: | | |
pipx install cookieplone | |
pipx run --no-cache cookieplone frontend_addon --no-input | |
- name: Install generated package | |
working-directory: ${{env.project-directory}} | |
# Modified `make install` to fetch the proper branch | |
run: | | |
pnpm dlx mrs-developer missdev --no-config --fetch-https | |
(cd core && git fetch --depth 1 origin ${GITHUB_REF#refs/heads/}:${GITHUB_REF#refs/heads/} && git checkout ${GITHUB_REF#refs/heads/}) | |
pnpm i | |
make build-deps | |
- name: Running lint works | |
working-directory: ${{env.project-directory}} | |
run: make lint | |
- name: Running prettier works | |
working-directory: ${{env.project-directory}} | |
run: make format | |
- name: Build Storybook | |
working-directory: ${{env.project-directory}} | |
run: make storybook-build | |
- name: Run i18n tests | |
working-directory: ${{env.project-directory}} | |
run: make i18n | |
- name: Running tests works | |
working-directory: ${{env.project-directory}} | |
run: make ci-test | |
- name: Cypress acceptance tests | |
uses: cypress-io/github-action@v6 | |
env: | |
BABEL_ENV: production | |
CYPRESS_RETRIES: 2 | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
install: false | |
working-directory: packages/volto | |
browser: chrome | |
spec: cypress/tests/minimal/**/*.js | |
start: | | |
make ci-acceptance-backend-start | |
make cookieplone-acceptance-frontend-prod-start | |
wait-on: 'pnpm dlx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000' | |
# Upload Cypress screenshots | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: packages/volto/cypress/screenshots | |
# Upload Cypress videos | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: packages/volto/cypress/videos |