File tree Expand file tree Collapse file tree 4 files changed +51
-7
lines changed Expand file tree Collapse file tree 4 files changed +51
-7
lines changed Original file line number Diff line number Diff line change 1+ extends : default
2+
3+ rules :
4+ # don't bother me with this rule
5+ # indentation: disable
6+ line-length : disable
7+ indentation : disable
8+ empty-lines : disable
9+ braces : disable
10+ colons : disable
11+ commas : disable
12+ hyphens : disable
13+ brackets : disable
14+ new-line-at-end-of-file : disable
15+ new-lines : disable
16+ yaml-files :
17+ - ' *.yaml'
18+ - ' *.yml'
19+ - ' .yamllint'
20+ - ' *.rul'
Original file line number Diff line number Diff line change 1+ name : Validate YAML with Yamllint
2+
3+ on :
4+ push :
5+
6+ pull_request :
7+
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ # Step 1: Check out the repository
15+ - name : Check out code
16+ uses : actions/checkout@v3
17+
18+ # Step 2: Set up Python and install yamllint
19+ - name : Set up Python and Install Yamllint
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.x'
23+
24+ - name : Install Yamllint
25+ run : |
26+ pip3 install yamllint
27+
28+ # Step 3: Run yamllint on all YAML files
29+ - name : Lint YAML files
30+ run : |
31+ yamllint -c .github/.yamllint.yml .
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments