-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 997 Bytes
/
site-lint.yml
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
name: Site Lint
on:
push:
branches: [main, cms/*, ecosystem-submission/*]
paths:
- "apps/site/**"
pull_request:
types: [opened, synchronize]
paths:
- "apps/site/**"
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/site
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: |
npm install --prefer-offline || npm install --prefer-offline
- name: Generate CMS configuration schema
run: npm run prebuild
- name: Run linter
run: npm run lint
- name: Run markdownlint
uses: davidanson/markdownlint-cli2-action@v19
with:
globs: |
**/*.md
!**/node_modules/**/*.md
config: "apps/site/.markdownlint.jsonc"