ansible-lint.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/omnia_config.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. /github/workspace/tools/olm.yml
  33. # [optional]
  34. # Arguments to override a package and its version to be set explicitly.
  35. # Must follow the example syntax.
  36. #override-deps: |
  37. # ansible==2.9
  38. # ansible-lint==4.2.0
  39. # [optional]
  40. # Arguments to be passed to the ansible-lint
  41. # Options:
  42. # -q quieter, although not silent output
  43. # -p parseable output in the format of pep8
  44. # --parseable-severity parseable output including severity of rule
  45. # -r RULESDIR specify one or more rules directories using one or
  46. # more -r arguments. Any -r flags override the default
  47. # rules in ansiblelint/rules, unless -R is also used.
  48. # -R Use default rules in ansiblelint/rules in addition to
  49. # any extra
  50. # rules directories specified with -r. There is no need
  51. # to specify this if no -r flags are used
  52. # -t TAGS only check rules whose id/tags match these values
  53. # -x SKIP_LIST only check rules whose id/tags do not match these
  54. # values
  55. # --nocolor disable colored output
  56. # --exclude=EXCLUDE_PATHS
  57. # path to directories or files to skip. This option is
  58. # repeatable.
  59. # -c C Specify configuration file to use. Defaults to ".ansible-lint"
  60. args: "-x 305"