From 92f4350c232d40b781dc3087a7072d4d9e851bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Br=C3=A4u?= Date: Wed, 15 Nov 2023 13:22:35 +0100 Subject: [PATCH] add workflow to validate yaml files --- .github/workflows/lint-participants.yml | 14 ++++++++++++++ yamllint-config.yaml | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/lint-participants.yml create mode 100644 yamllint-config.yaml diff --git a/.github/workflows/lint-participants.yml b/.github/workflows/lint-participants.yml new file mode 100644 index 0000000..e8f0658 --- /dev/null +++ b/.github/workflows/lint-participants.yml @@ -0,0 +1,14 @@ +--- +name: Validate yaml files + +on: + - push + - pull_request + +jobs: + validate-yaml: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: validate participants yaml files + run: yamllint -c yamllint-config.yaml _participants/* diff --git a/yamllint-config.yaml b/yamllint-config.yaml new file mode 100644 index 0000000..787643e --- /dev/null +++ b/yamllint-config.yaml @@ -0,0 +1,10 @@ +--- +extends: relaxed + +rules: + new-line-at-end-of-file: + level: warning + trailing-spaces: + level: warning + line-length: + max: 180