mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
The Github workflow Ubuntu images do not provide Ansible pre-installed anymore, and this patch forces its installation through Python's pip. Different jobs were created to test documentation with different versions of Ansible, currently 2.9 and the latest available.
33 lines
882 B
YAML
33 lines
882 B
YAML
---
|
|
name: Verify Ansible documentation.
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
check_docs_29:
|
|
name: Check Ansible Documentation with Ansible 2.9.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Run ansible-doc-test
|
|
run: |
|
|
python -m pip install "ansible < 2.10"
|
|
ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
|
|
|
|
check_docs_latest:
|
|
name: Check Ansible Documentation with latest Ansible.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Run ansible-doc-test
|
|
run: |
|
|
python -m pip install ansible
|
|
ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
|
|
|