CI: only run Ansible-lint on Ansible changes #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ansible Lint | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'Vagrantfile' | |
- 'docker/**' | |
- 'vagrant/**' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'Vagrantfile' | |
- 'docker/**' | |
- 'vagrant/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Important: This sets up your GITHUB_WORKSPACE environment variable | |
- uses: actions/checkout@v2 | |
- name: Lint Ansible Playbook | |
uses: ansible/[email protected] | |
# [optional] | |
# Arguments to be passed to the ansible-lint | |
# Options: | |
# -q quieter, although not silent output | |
# -p parseable output in the format of pep8 | |
# --parseable-severity parseable output including severity of rule | |
# -r RULESDIR specify one or more rules directories using one or | |
# more -r arguments. Any -r flags override the default | |
# rules in ansiblelint/rules, unless -R is also used. | |
# -R Use default rules in ansiblelint/rules in addition to | |
# any extra | |
# rules directories specified with -r. There is no need | |
# to specify this if no -r flags are used | |
# -t TAGS only check rules whose id/tags match these values | |
# -x SKIP_LIST only check rules whose id/tags do not match these | |
# values | |
# --nocolor disable colored output | |
# --exclude=EXCLUDE_PATHS | |
# path to directories or files to skip. This option is | |
# repeatable. | |
# -c C Specify configuration file to use. Defaults to ".ansible-lint" |