From 61ae29a8761490c3becaaaa3bb253fce60678aa8 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 26 Jan 2022 11:08:12 -0800 Subject: [PATCH] Validate YAML style in CI and PR builds (#204) --- .github/workflows/ci.yaml | 6 ++++++ .yamllint | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 .yamllint diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e9f91b7d..896afd9f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,3 +20,9 @@ jobs: env: PYTHONPATH: ${{github.workspace}}/ros_buildfarm run: ${{github.workspace}}/ros_buildfarm/scripts/misc/validate_config_index.py file://${{github.workspace}}/index.yaml + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Validate YAML style + run: yamllint . diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..79e21f13 --- /dev/null +++ b/.yamllint @@ -0,0 +1,7 @@ +--- +extends: default + +rules: + indentation: + indent-sequences: false + line-length: disable