File tree Expand file tree Collapse file tree 3 files changed +27
-22
lines changed Expand file tree Collapse file tree 3 files changed +27
-22
lines changed Original file line number Diff line number Diff line change
1
+ name : Check generated TOCs
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " README.md"
7
+ - " docs/BestPractices.md"
8
+
9
+ jobs :
10
+ doctoc :
11
+ name : Doc TOC Check
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/setup-node@v1
16
+ with :
17
+ node-version : ' 12.x'
18
+ - name : Install doctoc
19
+ run : npm i -g doctoc
20
+ - name : Create README copy and diff with doctoc
21
+ run : cp README.md README.md.tmp &&
22
+ doctoc --title='## Table of Contents' --github README.md &&
23
+ diff -q README.md README.md.tmp
24
+ - name : Create "docs/BestPractices.md" copy and diff with doctoc
25
+ run : cp docs/BestPractices.md docs/BestPractices.md.tmp &&
26
+ doctoc --title='## Table of Contents' --github docs/BestPractices.md &&
27
+ diff -q docs/BestPractices.md docs/BestPractices.md.tmp
Original file line number Diff line number Diff line change 57
57
script :
58
58
- find . -name "*.md" | xargs -n 1 markdown-link-check
59
59
60
- - stage : Test
61
- name : Doc Toc Check
62
- language : node_js
63
- node_js :
64
- - lts/*
65
- install : npm i -g doctoc
66
- script :
67
- - cp README.md README.md.tmp &&
68
- doctoc --title='## Table of Contents' --github README.md &&
69
- diff -q README.md README.md.tmp
70
-
71
60
- stage : Test
72
61
name : shfmt check
73
62
script :
Original file line number Diff line number Diff line change 55
55
script:
56
56
- find . -name "*.md" | xargs -n 1 markdown-link-check
57
57
58
- - stage: Test
59
- name: Doc Toc Check
60
- language: node_js
61
- node_js:
62
- - lts/*
63
- install: npm i -g doctoc
64
- script:
65
- - cp README.md README.md.tmp &&
66
- doctoc --title='## Table of Contents' --github README.md &&
67
- diff -q README.md README.md.tmp
68
-
69
58
- stage: Test
70
59
name: shfmt check
71
60
script:
You can’t perform that action at this time.
0 commit comments