File tree Expand file tree Collapse file tree 3 files changed +20
-22
lines changed Expand file tree Collapse file tree 3 files changed +20
-22
lines changed 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 57
57
script :
58
58
- find . -name "*.md" | xargs -n 1 markdown-link-check
59
59
60
- - stage : Test
61
- name : shfmt check
62
- script :
63
- - docker run -it --rm -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
64
- - git diff --color
65
- - git diff --stat=220 --color --exit-code
66
-
67
- - stage : Test
68
- name : Shell Check
69
- script : shellcheck *.sh
70
-
71
60
- stage : Test
72
61
name : .travis.yml and travis.yml.template consistency
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: shfmt check
60
- script:
61
- - docker run -it --rm -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
62
- - git diff --color
63
- - git diff --stat=220 --color --exit-code
64
-
65
- - stage: Test
66
- name: Shell Check
67
- script: shellcheck *.sh
68
-
69
58
- stage: Test
70
59
name: .travis.yml and travis.yml.template consistency
71
60
script:
You can’t perform that action at this time.
0 commit comments