blob: ec05c061d753d6726c50ece007bea31ec909da0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
name: NetApp.storagegrid Ansible CI
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
sanity:
name: Sanity (${{ matrix.ansible }} on storagegrid
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
- 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/storagegrid/
rsync -av . ansible_collections/netapp/storagegrid/ --exclude ansible_collections/netapp/storagegrid/
- name: Run sanity tests storagegrid
run: ansible-test sanity --docker -v --color
working-directory: ansible_collections/netapp/storagegrid/
- name: Run Unit Tests
run: ansible-test units --docker -v --color
working-directory: ansible_collections/netapp/storagegrid/
|