mariadb with various configuration #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: mariadb with various configuration | |
on: | |
#schedule: | |
# - cron: "45 3 * * 0" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
# workflow_dispatch: | |
# workflow_run: | |
# workflows: | |
# - "CI" | |
# types: | |
# - completed | |
defaults: | |
run: | |
working-directory: 'ansible-mariadb' | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' | |
jobs: | |
debian: | |
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}" | |
runs-on: ubuntu-22.04 | |
# if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- debian:12 | |
python_version: | |
- "3.10" | |
- "3.11" | |
ansible-version: | |
- '8.5' | |
scenario: | |
- default | |
steps: | |
- name: check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'ansible-mariadb' | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- name: 🐍 set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test-requirements.txt | |
- name: force reinstall of community.docker | |
run: | | |
mkdir -p /home/runner/.ansible/collections | |
ansible-galaxy collection install community.docker --force | |
- name: teardown apparmor | |
run: | | |
if [ -e /usr/sbin/aa-teardown ]; then /usr/sbin/aa-teardown; fi | |
- name: test with tox | |
run: | | |
make \ | |
test \ | |
-e TOX_SCENARIO="${{ matrix.scenario }}" \ | |
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | |
-e DISTRIBUTION="${{ matrix.image }}" | |
ubuntu: | |
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}" | |
runs-on: ubuntu-22.04 | |
# if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- ubuntu:22.04 | |
python_version: | |
- "3.10" | |
- "3.11" | |
ansible-version: | |
- '8.5' | |
scenario: | |
- default | |
steps: | |
- name: check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'ansible-mariadb' | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- name: 🐍 set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test-requirements.txt | |
- name: force reinstall of community.docker | |
run: | | |
mkdir -p /home/runner/.ansible/collections | |
ansible-galaxy collection install community.docker --force | |
- name: teardown apparmor | |
run: | | |
if [ -e /usr/sbin/aa-teardown ]; then /usr/sbin/aa-teardown; fi | |
- name: test with tox | |
run: | | |
make \ | |
test \ | |
-e TOX_SCENARIO="${{ matrix.scenario }}" \ | |
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | |
-e DISTRIBUTION="${{ matrix.image }}" | |
scenarios: | |
name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}" | |
runs-on: ubuntu-22.04 | |
needs: | |
- debian | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- debian:12 | |
- archlinux:latest | |
python_version: | |
- "3.11" | |
ansible-version: | |
- '8.5' | |
scenario: | |
# custom datadir | |
- custom-datadir | |
# primary with replica | |
- with-replication | |
# galera cluster | |
- galera-cluster | |
# single instance with TLS | |
- with-tls | |
steps: | |
- name: check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'ansible-mariadb' | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- name: 🐍 set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test-requirements.txt | |
- name: force reinstall of community.docker | |
run: | | |
mkdir -p /home/runner/.ansible/collections | |
ansible-galaxy collection install community.docker --force | |
- name: teardown apparmor | |
run: | | |
if [ -e /usr/sbin/aa-teardown ]; then /usr/sbin/aa-teardown; fi | |
- name: test with tox | |
run: | | |
make \ | |
test \ | |
-e TOX_SCENARIO="${{ matrix.scenario }}" \ | |
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | |
-e DISTRIBUTION="${{ matrix.image }}" | |
# old_versions: | |
# name: "${{ matrix.scenario }} / ${{ matrix.image }}, ansible ${{ matrix.ansible-version }}, python ${{ matrix.python_version }}" | |
# runs-on: ubuntu-22.04 | |
# needs: | |
# - debian | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# image: | |
# - debian:10 | |
# python_version: | |
# - "3.11" | |
# ansible-version: | |
# - "6.7" | |
# scenario: | |
# - "mariadb-10.4" | |
# - "mariadb-10.4-without-root-password" | |
# - "mariadb-10.5" | |
# | |
# steps: | |
# - name: check out the codebase. | |
# uses: actions/checkout@v4 | |
# with: | |
# path: 'ansible-mariadb' | |
# ref: ${{ github.event.workflow_run.head_branch }} | |
# | |
# - name: 🐍 set up python | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: "${{ matrix.python_version }}" | |
# | |
# - name: install dependencies | |
# run: | | |
# python -m pip install --upgrade pip | |
# pip install -r test-requirements.txt | |
# | |
# - name: force reinstall of community.docker | |
# run: | | |
# mkdir -p /home/runner/.ansible/collections | |
# ansible-galaxy collection install community.docker --force | |
# | |
# - name: apparmor | |
# run: | | |
# sudo aa-status | |
# sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ | |
# sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld | |
# | |
# - name: test with tox | |
# run: | | |
# make \ | |
# test \ | |
# -e TOX_SCENARIO="${{ matrix.scenario }}" \ | |
# -e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | |
# -e DISTRIBUTION="${{ matrix.image }}" |