Revise pull request template for Aurora #404
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: Code Analysis Check | |
| on: [push, pull_request] | |
| env: | |
| node-version: 24.x | |
| jobs: | |
| typescript: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| name: TypeScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: Aurora app TypeScript check | |
| run: pnpm --filter @plone/aurora exec init-loaders && pnpm --filter @plone/aurora run typecheck | |
| - name: Package TypeScript checks | |
| run: | | |
| pnpm --filter @plone/types run check:ts | |
| pnpm --filter @plone/client run check:ts | |
| pnpm --filter @plone/components run check:ts | |
| pnpm --filter @plone/registry run check:ts | |
| pnpm --filter @plone/blocks run check:ts | |
| pnpm --filter @plone/cmsui run check:ts | |
| pnpm --filter @plone/layout run check:ts | |
| pnpm --filter @plone/plate run check:ts | |
| pnpm --filter @plone/publicui run check:ts | |
| # Enable when ready | |
| # pnpm --filter @plone/contents run check:ts | |
| prettier: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| name: Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: Prettier check | |
| run: pnpm prettier | |
| eslint: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| name: ESlint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: Main ESlint check | |
| run: pnpm lint | |
| vite-optimize-deps: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| name: Vite optimizeDeps audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: Check optimizeDeps declarations are up to date | |
| run: pnpm check:vite-optimize-deps | |
| stylelint: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| name: Stylelint ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: ['@plone/components', '@plone/theming', '@plone/layout'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js environment | |
| uses: ./.github/actions/node_env_setup | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: Stylelint check ${{ matrix.name }} | |
| run: pnpm --filter ${{ matrix.name }} stylelint |