Prettier #374
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: | |
| aurora: | |
| 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: Aurora | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [24.x] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| timeout-minutes: 5 | |
| with: | |
| version: 0.11.19 | |
| python-version: ${{ env.python-version }} | |
| enable-cache: false | |
| - name: Generate Cookieplone-based frontend addon | |
| run: | | |
| uvx --prerelease allow cookieplone aurora_addon --no-input | |
| - name: Install generated package | |
| working-directory: plone-aurora-add-on | |
| run: | | |
| pnpm dlx mrs-developer missdev --no-config --fetch-https | |
| if [[ "${GITHUB_REF#refs/heads/}" != "main" ]]; 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: plone-aurora-add-on | |
| run: make lint | |
| - name: Run formatters in the generated package | |
| working-directory: plone-aurora-add-on | |
| run: make format | |
| # Upload Cypress screenshots | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: apps/aurora/cypress/screenshots | |
| # Upload Cypress videos | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: cypress-videos | |
| path: apps/aurora/cypress/videos |