forked from ansible/ansible-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47cb4cd
commit d8885d1
Showing
1 changed file
with
18 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
name: Lint | ||
name: Ansible Lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ansible/ansible-lint-action@master | ||
name: Lint | ||
# Important: This sets up your GITHUB_WORKSPACE environment variable | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Lint Ansible Playbook | ||
# replace "master" with any valid ref | ||
uses: ansible/ansible-lint-action@master | ||
with: | ||
ACTION_PLAYBOOK_NAME: "wordpress-nginx/site.yml" | ||
# [required] | ||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..) | ||
# or valid Ansible directories according to the Ansible role | ||
# directory structure. | ||
# If you want to lint multiple ansible files, use the following syntax | ||
# targets: | | ||
# playbook_1.yml | ||
# playbook_2.yml | ||
targets: "wordpress-nginx/site.yml" |