feat: add a GitHub action to lint the YAML files

Lint some YAML
Add a `.yamllint` config file
This commit is contained in:
John Bampton 2020-12-15 11:01:37 +10:00 committed by Xiang Xiao
parent 32bf92c5c3
commit ca6b11b425
6 changed files with 68 additions and 48 deletions

12
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: ❄️ Lint
on: [pull_request]
jobs:
yamllint:
name: 🍺 YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🧹 YAML Lint
uses: ibiqlik/action-yamllint@v3

8
.yamllint Normal file
View File

@ -0,0 +1,8 @@
---
extends: default
rules:
document-start: disable
line-length: disable
truthy: disable