-
-
Notifications
You must be signed in to change notification settings - Fork 231
66 lines (60 loc) · 1.88 KB
/
lint.yml
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
name: Lint
on: [push, pull_request]
jobs:
editorconfig-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: editorconfig-checker
run: |
docker run --rm \
-v "${GITHUB_WORKSPACE}":/check \
-u "$(id -u):$(id -g)" \
mstruebing/editorconfig-checker
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: markdownlint
run: |
find "${GITHUB_WORKSPACE}" -name '*.md' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
markdownlint/markdownlint \
-r ~MD007,~MD013,~MD033,~MD034 \
{} +
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: shellcheck
run: |
find "${GITHUB_WORKSPACE}" -name '*.sh' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
koalaman/shellcheck \
{} +
shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: shfmt
run: |
find "${GITHUB_WORKSPACE}" -name '*.sh' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
mvdan/shfmt \
-s -d \
{} +
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: yamllint
run: |
find "${GITHUB_WORKSPACE}" -name '*.yaml' -o -name '*.yml' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
peterdavehello/yamllint \
yamllint -d '{"extends":"default","rules":{"document-start":{"present":false},"line-length":"disable","truthy":{"check-keys":false}}}' \
{} +