Debian Codegraph @

ansible_collections/netapp/storagegrid/.github/workflows/main.yml

raw
1 name: NetApp.storagegrid Ansible CI
2
3 on:
4 push:
5 pull_request:
6 schedule:
7 - cron: '0 6 * * *'
8
9 jobs:
10 sanity:
11 name: Sanity (${{ matrix.ansible }} on storagegrid
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 ansible:
17 - stable-2.16
18 - stable-2.17
19 - stable-2.18
20 - devel
21
22 steps:
23 - name: Check out code
24 uses: actions/checkout@v2
25
26 - name: Set up Python
27 uses: actions/setup-python@v2
28 with:
29 # Ansible 2.17 requires 3.11 as a minimum
30 python-version: 3.11
31
32 - name: Install ansible (${{ matrix.ansible }})
33 run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
34
35 - name: Make directory to make ansible-test happy
36 run: |
37 pwd
38 mkdir -p ansible_collections/netapp/storagegrid/
39 rsync -av . ansible_collections/netapp/storagegrid/ --exclude ansible_collections/netapp/storagegrid/
40 - name: Run sanity tests storagegrid
41 run: ansible-test sanity --docker -v --color
42 working-directory: ansible_collections/netapp/storagegrid/
43
44 - name: Run Unit Tests
45 run: ansible-test units --docker -v --color
46 working-directory: ansible_collections/netapp/storagegrid/