mirror of https://github.com/poanetwork/gecko.git
Merge pull request #120 from moreati/ansible-lint
build: Perform Ansible lint checks on pull requests
This commit is contained in:
commit
c46656bf9f
|
@ -0,0 +1,24 @@
|
|||
name: Ansible Lint
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Lint Ansible playbooks
|
||||
# Lastest commit, as of 30 Apr 2020
|
||||
uses: ansible/ansible-lint-action@6c8c141
|
||||
with:
|
||||
targets: |
|
||||
scripts/ansible/kill_playbook.yml
|
||||
scripts/ansible/ping_playbook.yml
|
||||
scripts/ansible/restart_playbook.yml
|
||||
scripts/ansible/update_playbook.yml
|
||||
|
||||
args:
|
||||
-c scripts/ansible/.ansible-lint
|
|
@ -0,0 +1,7 @@
|
|||
parsable: true
|
||||
skip_list:
|
||||
- '301' # Commands should not change things if nothing needs doing
|
||||
- '204' # Lines should be no longer than 160 chars
|
||||
- '502' # All tasks should be named
|
||||
|
||||
# vim: filetype=yaml
|
|
@ -6,6 +6,4 @@
|
|||
hosts: all
|
||||
tasks:
|
||||
- name: Ping node
|
||||
shell: "ls"
|
||||
environment:
|
||||
PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/snap/bin
|
||||
ping:
|
||||
|
|
Loading…
Reference in New Issue