From f235ae5e4a86407e4377e1e538962436ab377d3e Mon Sep 17 00:00:00 2001 From: smoshiur1237 Date: Thu, 20 Nov 2025 11:22:57 +0200 Subject: [PATCH] Add yamlling workflow Signed-off-by: smoshiur1237 --- .github/workflows/yamllint.yaml | 19 +++++++++++++++++++ .yamllint.yaml | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/yamllint.yaml create mode 100644 .yamllint.yaml diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000000..ce2ea07bbb --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -0,0 +1,19 @@ +--- +name: yamllint +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + + - name: yaml-lint + uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 + with: + config_file: .yamllint.yaml diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000000..decb331000 --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,10 @@ +yaml-files: +- '*.yaml' +- '*.yml' +- '.yamllint' + +rules: + trailing-spaces: enable + key-duplicates: enable + truthy: + allowed-values: ['true', 'false', 'yes', 'no', 'on']