Skip to content

Merge pull request #28 from datadope-io/feature/filebeat #359

Merge pull request #28 from datadope-io/feature/filebeat

Merge pull request #28 from datadope-io/feature/filebeat #359

Workflow file for this run

---
name: repo-sanity
on:
push:
pull_request:
jobs:
sanity:
name: Sanity (${{ matrix.ansible }}+py${{ matrix.python }})
strategy:
matrix:
include:
- ansible: stable-2.12
python: '3.10'
- ansible: stable-2.13
python: '3.10'
- ansible: stable-2.14
python: '3.10'
- ansible: stable-2.15
python: '3.10'
- ansible: stable-2.16
python: '3.10'
- ansible: stable-2.17
python: '3.10'
- ansible: devel
python: '3.11'
runs-on: ubuntu-latest
steps:
# ansible-test requires the collection to be in a directory in the form
# .../ansible_collections/NAMESPACE/COLLECTION_NAME/
- name: Check out code
uses: actions/checkout@v2
with:
path: ansible_collections/datadope/discovery
- name: Set up Python ${{ matrix.python }} for Ansible ${{ matrix.ansible }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
# Install the head of the given branch (devel, stable-2.10)
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
# run ansible-test sanity inside of Docker.
# The docker container has all the pinned dependencies that are required.
# Explicity specify the version of Python we want to test
- name: Run sanity tests
run: ansible-test sanity --docker --color --exclude tests/ --python ${{ matrix.python }} -v
working-directory: ./ansible_collections/datadope/discovery