Skip to content

Plugins CI

Plugins CI #1375

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