Debian Codegraph @

ansible_collections/community/proxysql/.github/workflows/ansible-test-roles.yml

raw
1 name: Roles CI
2 on:
3 push:
4 paths:
5 - 'roles/**'
6 - '.github/workflows/ansible-test-roles.yml'
7 pull_request:
8 paths:
9 - 'roles/**'
10 - '.github/workflows/ansible-test-roles.yml'
11 schedule:
12 - cron: '0 6 * * *'
13
14 jobs:
15 molecule:
16 name: "Molecule (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}, ProxySQL: ${{ matrix.proxysql }})"
17 runs-on: ubuntu-latest
18 env:
19 PY_COLORS: 1
20 ANSIBLE_FORCE_COLOR: 1
21 strategy:
22 matrix:
23 proxysql:
24 - 2.3.2
25 ansible:
26 - stable-2.9
27 ### it looks like there's errors for 2.10+ with ansible-lint (https://github.com/ansible/ansible-lint/pull/878)
28 ### and molecule (_maybe_ relating to https://github.com/ansible-community/molecule/pull/2547)
29 # - stable-2.10
30 # - devel
31 python:
32 - 2.7
33 - 3.8
34 steps:
35 - name: Check out code
36 uses: actions/checkout@v2
37 with:
38 path: ansible_collections/community/proxysql
39
40 - name: Set up Python ${{ matrix.python }}
41 uses: actions/setup-python@v2
42 with:
43 python-version: ${{ matrix.python }}
44
45 - name: Install ansible-base (${{ matrix.ansible }})
46 run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
47
48 - name: Install molecule and related dependencies
49 run: |
50 pip install ansible-lint docker flake8 molecule testinfra yamllint
51
52 - name: Run molecule default test scenario
53 run: for d in roles/*/; do (cd "$d" && molecule --version && molecule test) done
54 working-directory: ./ansible_collections/community/proxysql