Skip to content

NetApp.ontap Ansible CI #1927

NetApp.ontap Ansible CI

NetApp.ontap Ansible CI #1927

Workflow file for this run

name: NetApp.ontap Ansible CI
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
sanity:
name: Sanity (${{ matrix.ansible }} on ONTAP
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.9
- stable-2.10
- stable-2.11
- stable-2.12
- stable-2.13
- stable-2.14
- stable-2.15
- stable-2.16
- devel
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
# Ansible 2.14 requires 3.9 as a minimum
python-version: 3.9
- 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/ontap/
rsync -av . ansible_collections/netapp/ontap/ --exclude ansible_collections/netapp/ontap/
- name: Run sanity tests ONTAP
run: ansible-test sanity --docker -v --color
working-directory: ansible_collections/netapp/ontap/
- name: Run Unit Tests
run: ansible-test units --docker -v --color
working-directory: ansible_collections/netapp/ontap/