diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml new file mode 100644 index 00000000..4511eed8 --- /dev/null +++ b/.github/workflows/lint-yaml.yml @@ -0,0 +1,12 @@ +name: Lint YAML +on: [pull_request] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Lint action.yml + uses: ibiqlik/action-yamllint@master + with: + file_or_dir: action.yml + config_file: yaml-lint-config.yml diff --git a/yaml-lint-config.yml b/yaml-lint-config.yml new file mode 100644 index 00000000..addf0aa1 --- /dev/null +++ b/yaml-lint-config.yml @@ -0,0 +1,7 @@ +extends: default + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning