File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : validate YAML files
3+
4+ on :
5+ push :
6+ branches :
7+ - ' **'
8+ - ' !**release**'
9+ tags-ignore :
10+ # I tag release pushes but those should have already been tested
11+ - ' release-*'
12+ paths :
13+ - ' .github/workflows/**.yml'
14+ pull_request :
15+ branches :
16+ - ' **'
17+ paths :
18+ - ' .github/workflows/**.yml'
19+
20+ jobs :
21+ yaml :
22+ runs-on : ubuntu-20.04
23+ steps :
24+ - uses : actions/checkout@v3
25+ - name : ' yamllint on repo workflows'
26+ uses : karancode/yamllint-github-action@master
27+ with :
28+ yamllint_file_or_dir : ' .github/workflows'
29+ yamllint_strict : false
30+ yamllint_comment : true
31+ yamllint_config_filepath : yamllint.config
32+ env :
33+ YAMLLINT_CONFIG_FILE : yamllint.config
34+ - name : ' yamllint on example workflows'
35+ uses : karancode/yamllint-github-action@master
36+ with :
37+ yamllint_file_or_dir : ' ./perl-module-*.yml'
38+ yamllint_strict : false
39+ yamllint_comment : true
40+ yamllint_config_filepath : yamllint.config
41+ env :
42+ YAMLLINT_CONFIG_FILE : yamllint.config
Original file line number Diff line number Diff line change 1+ ---
2+ # https://yamllint.readthedocs.io/en/latest/rules.html
3+ yaml-files:
4+ - '*.yaml'
5+ - '*.yml'
6+ - '.yamllint'
7+
8+ rules:
9+ anchors: enable
10+ braces: enable
11+ brackets: enable
12+ colons: enable
13+ commas: enable
14+ comments:
15+ level: warning
16+ comments-indentation:
17+ level: warning
18+ document-end: disable
19+ document-start:
20+ level: warning
21+ empty-lines: enable
22+ empty-values: disable
23+ float-values: disable
24+ hyphens: enable
25+ indentation:
26+ spaces: consistent
27+ indent-sequences: consistent
28+ check-multi-line-strings: false
29+ key-duplicates: enable
30+ key-ordering: disable
31+ line-length: disable
32+ new-line-at-end-of-file: enable
33+ new-lines: enable
34+ octal-values: disable
35+ quoted-strings: disable
36+ trailing-spaces: enable
37+ truthy:
38+ level: warning
You can’t perform that action at this time.
0 commit comments