-
Notifications
You must be signed in to change notification settings - Fork 4
100 lines (88 loc) · 3.47 KB
/
Copy pathcode-analysis.yml
File metadata and controls
100 lines (88 loc) · 3.47 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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:
include:
- name: '@plone/components'
files: 'src/**/*.{css,scss,less}'
- name: '@plone/theming'
files: 'styles/**/*.{css,scss,less}'
- name: '@plone/layout'
files: '{components,slots,styles,views}/**/*.{css,scss,less}'
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 }} exec stylelint '${{ matrix.files }}'