Browse Source

minor #5298 Add yamllint workflow, validates .yaml files (sanmai)

This PR was merged into the 2.16 branch.

Discussion
----------

Add yamllint workflow, validates .yaml files

This has two effects:

- It will validate `.yaml` files for general correctness everywhere except `vendor` and `dev-tools/vendor`
- And as a side-effect, it might enable other workflows to happen. E.g. we will no longer need to consult with forks to see if  #5295 #5268 #5183 etc are working.

Commits
-------

f6cdee139 Add yamllint workflow
Dariusz Ruminski 4 years ago
parent
commit
610277b227
1 changed files with 21 additions and 0 deletions
  1. 21 0
      .github/workflows/yaml.yaml

+ 21 - 0
.github/workflows/yaml.yaml

@@ -0,0 +1,21 @@
+# yamllint disable rule:line-length
+
+name: YAML Validation
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  validate-yaml:
+    name: Validate YAML
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+
+      - name: Run YAMLlint
+        run: |
+          find . -path \*/vendor -prune -false -o -name \*.y*ml | xargs yamllint -d relaxed
+