diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml new file mode 100644 index 000000000000..610dba5183b0 --- /dev/null +++ b/.github/workflows/lint-yaml.yml @@ -0,0 +1,20 @@ +--- + +name: Lint yaml files + +on: + pull_request: + types: [push, opened, reopened, synchronized] + paths: + - '.github/test-spec.yml' + +jobs: + lintAllTheThings: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: yaml-lint + uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 + with: + file_or_dir: .github/test-spec.yml + config_file: .github/yamllint.yml diff --git a/.github/yamllint.yml b/.github/yamllint.yml new file mode 100644 index 000000000000..f4694ebacd99 --- /dev/null +++ b/.github/yamllint.yml @@ -0,0 +1,14 @@ +extends: default + +ignore: | + *.md + CODEOWNERS + *.ini + +rules: + colons: disable + comments: disable + comments-indentation: disable + document-start: disable + line-length: disable + new-line-at-end-of-file: disable