Debian Codegraph @

ansible_collections/cisco/meraki/workflows/sanity_tests.yml

raw
1 name: CI
2 on:
3 push:
4 pull_request:
5 schedule:
6 - cron: '0 6 * * *'
7 env:
8 NAMESPACE: cisco
9 COLLECTION_NAME: meraki
10 jobs:
11 sanity:
12 name: Sanity (Ⓐ${{ matrix.ansible }})
13 strategy:
14 matrix:
15 ansible:
16 - stable-2.15
17 - stable-2.16
18 runs-on: ubuntu-latest
19 steps:
20 - name: Check out code
21 uses: actions/checkout@v4
22 with:
23 path: meraki/meraki-ansible
24 - name: Create directory
25 run: mkdir -p ./ansible_collections/${{env.NAMESPACE}}
26 - name: Move repository
27 run: mv ./meraki/meraki-ansible ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
28 - name: Set up Python
29 uses: actions/setup-python@v4
30 with:
31 python-version: 3.12
32 - name: Install ansible-base (${{ matrix.ansible }})
33 run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
34 - name: Run sanity tests
35 run: ansible-test sanity --docker -v --color
36 working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}