-
Notifications
You must be signed in to change notification settings - Fork 6.6k
80 lines (67 loc) · 2.36 KB
/
Copy pathcheck-markdown.yml
File metadata and controls
80 lines (67 loc) · 2.36 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: Docs Broken Link Check
on:
pull_request:
paths:
- '**/*.md'
- '**/*.mdx'
- 'docs/**'
- '**/metadata.yaml'
- '**/taxonomy.yaml'
- 'integrations/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v7
with:
fetch-depth: 0
path: netdata
- name: Checkout netdata/learn repository
uses: actions/checkout@v7
with:
repository: netdata/learn
path: learn
- name: Init python env
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Setup python dependencies
run: |
python3 -m venv ./venv
source ./venv/bin/activate
pip install -r learn/.learn_environment/ingest-requirements.txt
cd netdata && ./integrations/pip.sh
- name: Generate Integrations
run: |
source ./venv/bin/activate
cd netdata && python3 integrations/gen_integrations.py
- name: Check Collector Taxonomy
run: |
source ./venv/bin/activate
cd netdata && python3 integrations/check_collector_taxonomy.py --pr-diff "${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}"
- name: Test Collector Taxonomy Tooling
run: |
source ./venv/bin/activate
cd netdata && python3 -m unittest integrations.tests.test_taxonomy
- name: Generate Integrations Documentation
run: |
source ./venv/bin/activate
cd netdata && python3 integrations/gen_docs_integrations.py
- name: Generate src/collectors/COLLECTORS.md
run: |
source ./venv/bin/activate
cd netdata && python3 integrations/gen_doc_collector_page.py
- name: Generate src/collectors/SECRETS.md
run: |
source ./venv/bin/activate
cd netdata && python3 integrations/gen_doc_secrets_page.py
- name: Run Ingest
working-directory: learn
run: |
source ../venv/bin/activate
echo "Running ingest with local netdata directory"
python ingest/ingest.py --local-repo "netdata:${{ github.workspace }}/netdata" --ignore-on-prem-repo --fail-links-netdata