Debian Codegraph @

ansible_collections/cisco/meraki/.github/workflows/sanity_tests.yml

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