ansible-role-ipa-getcert/github/workflows/ansible-lint.yml

34 lines
909 B
YAML
Raw Normal View History

2020-12-19 06:19:07 +00:00
---
# https://github.com/ansible/ansible-lint-action
name: Ansible Lint
on:
push:
paths:
- '**.yml'
- '**.yaml'
jobs:
ansible-lint:
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Add installed collections in Ansible configuration
run: |
echo '[defaults]' > ansible.cfg
echo 'collections_paths = ./collections' >> ansible.cfg
- name: Install role requirements
run: ansible-galaxy role install -r molecule/requirements.yml
# TODO: Figure out how to get this not to error so this action is universal
# - name: Install collection requirements
# run: ansible-galaxy collection install -r molecule/requirements.yml
- name: Ansible Lint
uses: rocky-linux/ansible-lint-action@master
with:
args: "--exclude .github"