You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

  1. ---
  2. repos:
  3. - repo: https://github.com/adrienverge/yamllint.git
  4. rev: v1.27.1
  5. hooks:
  6. - id: yamllint
  7. args: [--strict]
  8. - repo: https://github.com/markdownlint/markdownlint
  9. rev: v0.11.0
  10. hooks:
  11. - id: markdownlint
  12. args: [ -r, "~MD013,~MD029" ]
  13. exclude: "^.git"
  14. - repo: local
  15. hooks:
  16. - id: ansible-lint
  17. name: ansible-lint
  18. entry: ansible-lint -v
  19. language: python
  20. pass_filenames: false
  21. additional_dependencies:
  22. - .[community]
  23. - id: ansible-syntax-check
  24. name: ansible-syntax-check
  25. entry: env ANSIBLE_INVENTORY=inventory/local-tests.cfg ANSIBLE_REMOTE_USER=root ANSIBLE_BECOME="true" ANSIBLE_BECOME_USER=root ANSIBLE_VERBOSITY="3" ansible-playbook --syntax-check
  26. language: python
  27. files: "^cluster.yml|^upgrade-cluster.yml|^reset.yml|^extra_playbooks/upgrade-only-k8s.yml"
  28. - id: tox-inventory-builder
  29. name: tox-inventory-builder
  30. entry: bash -c "cd contrib/inventory_builder && tox"
  31. language: python
  32. pass_filenames: false
  33. - id: check-readme-versions
  34. name: check-readme-versions
  35. entry: tests/scripts/check_readme_versions.sh
  36. language: script
  37. pass_filenames: false
  38. - id: ci-matrix
  39. name: ci-matrix
  40. entry: tests/scripts/md-table/test.sh
  41. language: script
  42. pass_filenames: false