diff --git a/.github/workflows/yaml-lint.yaml b/.github/workflows/yaml-lint.yaml new file mode 100644 index 00000000..ab947237 --- /dev/null +++ b/.github/workflows/yaml-lint.yaml @@ -0,0 +1,32 @@ +name: YAML Lint +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + yaml-lint: + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v2 + - name: Yamllint Github Action + uses: karancode/yamllint-github-action@v2.0.0 + with: + yamllint_comment: true + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Set up Python 3.8 + # uses: actions/setup-python@v2 + # with: + # python-version: 3.8 + # architecture: 'x64' + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install yamllint + # - name: Validate Manifests + # run: ./hack/validate_yaml.sh diff --git a/hack/validate_yaml.sh b/hack/validate_yaml.sh new file mode 100755 index 00000000..3698aad1 --- /dev/null +++ b/hack/validate_yaml.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +yamllint . -f github