-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.13 KB
/
Copy pathdocs-lint.yml
File metadata and controls
41 lines (38 loc) · 1.13 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
name: Docs Lint & Build Check
on:
pull_request:
paths:
- 'projects/*/docs/**'
jobs:
lint-crowdsec:
if: contains(github.event.pull_request.title, 'crowdsec') || contains(join(github.event.pull_request.labels.*.name), 'crowdsec')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install and build
working-directory: projects/crowdsec-manager/docs
run: |
npm ci
npm run build
echo "Build successful"
lint-middleware:
if: contains(github.event.pull_request.title, 'middleware') || contains(join(github.event.pull_request.labels.*.name), 'middleware')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install and build
working-directory: projects/middleware-manager/docs/docs
run: |
npm ci
npm run build
echo "Build successful"