Debian Codegraph @

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

raw
1 name: Plugins CI
2 on:
3 push:
4 paths:
5 - 'plugins/**'
6 - 'tests/**'
7 - '.github/workflows/ansible-test-plugins.yml'
8 pull_request:
9 paths:
10 - 'plugins/**'
11 - 'tests/**'
12 - '.github/workflows/ansible-test-plugins.yml'
13 schedule:
14 - cron: '0 6 * * *'
15
16
17 env:
18 proxysql_version_file: "./tests/integration/targets/setup_proxysql/defaults/main.yml"
19
20 jobs:
21 sanity:
22 name: "Sanity (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }})"
23 runs-on: ubuntu-24.04
24 strategy:
25 matrix:
26 ansible:
27 - stable-2.17
28 - stable-2.18
29 - stable-2.19
30 - devel
31 steps:
32 - name: Perform sanity testing
33 uses: ansible-community/ansible-test-gh-action@release/v1
34 with:
35 ansible-core-version: ${{ matrix.ansible }}
36 testing-type: sanity
37 pull-request-change-detection: true
38
39 integration:
40 name: "Integration (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}, ProxySQL: ${{ matrix.proxysql }})"
41 runs-on: ubuntu-24.04
42 strategy:
43 fail-fast: false
44 matrix:
45 proxysql:
46 - 2.7.2
47 ansible:
48 - stable-2.17
49 - stable-2.18
50 - stable-2.19
51 - devel
52 python:
53 - 3.12
54 include:
55 - python: 3.12
56 ansible: "stable-2.17"
57 proxysql: 2.7.2
58 - python: 3.13
59 ansible: "stable-2.18"
60 proxysql: 2.7.2
61 - python: 3.13
62 ansible: "stable-2.19"
63 proxysql: 2.7.2
64
65 steps:
66 - name: >-
67 Perform integration testing against
68 Ansible version ${{ matrix.ansible }}
69 under Python ${{ matrix.python }}
70 uses: ansible-community/ansible-test-gh-action@release/v1
71 with:
72 ansible-core-version: ${{ matrix.ansible }}
73 pre-test-cmd: >-
74 sed -i 's/^proxysql_version:.*/proxysql_version: \"${{ matrix.proxysql }}\"/g' ${{ env.proxysql_version_file }}
75 target-python-version: ${{ matrix.python }}
76 testing-type: integration
77 pull-request-change-detection: true