File tree Expand file tree Collapse file tree 6 files changed +80
-94
lines changed Expand file tree Collapse file tree 6 files changed +80
-94
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
1
+ name : Test Whitespace and line endings
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ eclint :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v1
11
+ with :
12
+ node-version : ' 12.x'
13
+ - run : npm i -g eclint
14
+ - run : eclint check
Original file line number Diff line number Diff line change
1
+ name : Check Markdown links
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " **/*.md"
7
+
8
+ jobs :
9
+ markdown-link-check :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-node@v1
14
+ with :
15
+ node-version : ' 12.x'
16
+ - name : Install markdown-link-check
17
+ run : npm i -g markdown-link-check
18
+ - name : Run markdown-link-check on MD files
19
+ run : find . -name "*.md" | xargs -n 1 markdown-link-check -q
Original file line number Diff line number Diff line change
1
+ name : Check Shell scripts
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " **/*.sh"
7
+
8
+ jobs :
9
+ shfmt :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ - run : docker run -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
14
+ - run : git diff --color --exit-code
15
+
16
+ shellcheck :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v1
20
+ - run : shellcheck *.sh
Original file line number Diff line number Diff line change @@ -40,55 +40,8 @@ stages:
40
40
41
41
jobs :
42
42
fast_finish : true
43
- allow_failures :
44
- - env :
45
- - TEST=mardown_lint
46
43
47
44
include :
48
- - stage : Test
49
- name : Markdown link check
50
- env :
51
- - TEST=mardown_lint
52
- language : node_js
53
- node_js :
54
- - lts/*
55
- install :
56
- - npm i -g markdown-link-check
57
- script :
58
- - find . -name "*.md" | xargs -n 1 markdown-link-check
59
-
60
- - stage : Test
61
- name : Editor Config check
62
- language : node_js
63
- node_js :
64
- - lts/*
65
- install :
66
- - npm i -g eclint
67
- script :
68
- - eclint check
69
-
70
- - stage : Test
71
- name : Doc Toc Check
72
- language : node_js
73
- node_js :
74
- - lts/*
75
- install : npm i -g doctoc
76
- script :
77
- - cp README.md README.md.tmp &&
78
- doctoc --title='## Table of Contents' --github README.md &&
79
- diff -q README.md README.md.tmp
80
-
81
- - stage : Test
82
- name : shfmt check
83
- script :
84
- - docker run -it --rm -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
85
- - git diff --color
86
- - git diff --stat=220 --color --exit-code
87
-
88
- - stage : Test
89
- name : Shell Check
90
- script : shellcheck *.sh
91
-
92
45
- stage : Test
93
46
name : .travis.yml and travis.yml.template consistency
94
47
script :
Original file line number Diff line number Diff line change @@ -38,55 +38,8 @@ stages:
38
38
39
39
jobs:
40
40
fast_finish: true
41
- allow_failures:
42
- - env:
43
- - TEST=mardown_lint
44
41
45
42
include:
46
- - stage: Test
47
- name: Markdown link check
48
- env:
49
- - TEST=mardown_lint
50
- language: node_js
51
- node_js:
52
- - lts/*
53
- install:
54
- - npm i -g markdown-link-check
55
- script:
56
- - find . -name "*.md" | xargs -n 1 markdown-link-check
57
-
58
- - stage: Test
59
- name: Editor Config check
60
- language: node_js
61
- node_js:
62
- - lts/*
63
- install:
64
- - npm i -g eclint
65
- script:
66
- - eclint check
67
-
68
- - stage: Test
69
- name: Doc Toc Check
70
- language: node_js
71
- node_js:
72
- - lts/*
73
- install: npm i -g doctoc
74
- script:
75
- - cp README.md README.md.tmp &&
76
- doctoc --title='## Table of Contents' --github README.md &&
77
- diff -q README.md README.md.tmp
78
-
79
- - stage: Test
80
- name: shfmt check
81
- script:
82
- - docker run -it --rm -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
83
- - git diff --color
84
- - git diff --stat=220 --color --exit-code
85
-
86
- - stage: Test
87
- name: Shell Check
88
- script: shellcheck *.sh
89
-
90
43
- stage: Test
91
44
name: .travis.yml and travis.yml.template consistency
92
45
script:
You can’t perform that action at this time.
0 commit comments