-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (70 loc) · 2.72 KB
/
Copy pathcode-analysis.yml
File metadata and controls
80 lines (70 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
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