NetApp.cloudmanager Ansible CI #802
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
name: NetApp.cloudmanager Ansible CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
sanity: | |
name: Sanity (${{ matrix.ansible }} on Cloudmanager | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ansible: | |
- stable-2.16 | |
- stable-2.17 | |
- stable-2.18 | |
- devel | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
# Ansible 2.17 requires 3.11 as a minimum | |
python-version: 3.11 | |
- name: Install ansible (${{ matrix.ansible }}) | |
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check | |
- name: Make directory to make ansible-test happy | |
run: | | |
pwd | |
mkdir -p ansible_collections/netapp/cloudmanager/ | |
rsync -av . ansible_collections/netapp/cloudmanager/ --exclude ansible_collections/netapp/cloudmanager/ | |
- name: Run sanity tests Cloudmanager | |
run: ansible-test sanity --docker -v --color | |
working-directory: ansible_collections/netapp/cloudmanager/ |