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