diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..69ca59d --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,11 @@ +--- +name: Yaml Lint +on: + push: +jobs: + yamllint: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: yamllint + uses: ibiqlik/action-yamllint@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..a43bfdf --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + + - repo: https://github.com/adrienverge/yamllint + rev: v1.25.0 + hooks: + - id: yamllint + args: [-c=.yamllint] diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..39bec85 --- /dev/null +++ b/.yamllint @@ -0,0 +1,4 @@ +--- + truthy: + enable: true + allowed-values: ["true", "false", "on"]