ansible-lint.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: Ansible Lint # feel free to pick your own name
  2. on:
  3. pull_request:
  4. branches:
  5. - release
  6. - devel
  7. jobs:
  8. ansible-lint:
  9. runs-on: ubuntu-latest
  10. steps:
  11. # Important: This sets up your GITHUB_WORKSPACE environment variable
  12. - uses: actions/checkout@v2
  13. - name: ansible-lint
  14. # replace "master" with any valid ref
  15. uses: ansible/ansible-lint-action@master
  16. with:
  17. # [required]
  18. # Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
  19. # or valid Ansible directories according to the Ansible role
  20. # directory structure.
  21. # If you want to lint multiple ansible files, use the following syntax
  22. # targets: |
  23. # playbook_1.yml
  24. # playbook_2.yml
  25. targets: |
  26. /github/workspace/omnia.yml
  27. /github/workspace/control_plane/control_plane.yml
  28. /github/workspace/platforms/jupyterhub.yml
  29. /github/workspace/platforms/kubeflow.yml
  30. /github/workspace/tools/install_tools.yml
  31. /github/workspace/tools/intel_tools.yml
  32. # [optional]
  33. # Arguments to override a package and its version to be set explicitly.
  34. # Must follow the example syntax.
  35. override-deps: |
  36. ansible==2.10
  37. ansible-lint==5.1.2
  38. # [optional]
  39. # Arguments to be passed to the ansible-lint
  40. # Options:
  41. # -q quieter, although not silent output
  42. # -p parseable output in the format of pep8
  43. # --parseable-severity parseable output including severity of rule
  44. # -r RULESDIR specify one or more rules directories using one or
  45. # more -r arguments. Any -r flags override the default
  46. # rules in ansiblelint/rules, unless -R is also used.
  47. # -R Use default rules in ansiblelint/rules in addition to
  48. # any extra
  49. # rules directories specified with -r. There is no need
  50. # to specify this if no -r flags are used
  51. # -t TAGS only check rules whose id/tags match these values
  52. # -x SKIP_LIST only check rules whose id/tags do not match these
  53. # values
  54. # --nocolor disable colored output
  55. # --exclude=EXCLUDE_PATHS
  56. # path to directories or files to skip. This option is
  57. # repeatable.
  58. # -c C Specify configuration file to use. Defaults to ".ansible-lint"
  59. args: "-x 305"