diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..f9c5ea3 --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,24 @@ +--- + +name: YAML Validation + +on: + push: + branches: [ '**' ] + pull_request: + branches: [ master ] + +jobs: + yamllint: + name: 'yamllint' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@master + - name: 'Yamllint' + uses: karancode/yamllint-github-action@master + with: + yamllint_file_or_dir: index.yaml + yamllint_comment: true + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..6782ec1 --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default + +rules: + line-length: disable + truthy: + check-keys: false + document-start: + present: false