2024-08-26 21:56:50 +07:00
|
|
|
---
|
|
|
|
name: Molecule
|
|
|
|
|
|
|
|
'on':
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
scenario:
|
2024-08-27 16:24:51 +07:00
|
|
|
- debian12_galera
|
2024-08-26 21:56:50 +07:00
|
|
|
- debian12_master_slave
|
|
|
|
- debian12_upstream
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
path: "${{ github.repository }}"
|
|
|
|
|
|
|
|
- name: Set up Python 3.
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install lib dependencies
|
|
|
|
run: pip3 install netaddr
|
|
|
|
|
|
|
|
- name: Molecule
|
|
|
|
uses: gofrolist/molecule-action@v2
|
|
|
|
with:
|
|
|
|
molecule_options: --base-config molecule/_shared/base.yml
|
|
|
|
molecule_args: --scenario-name ${{ matrix.scenario }}
|
|
|
|
env:
|
|
|
|
ANSIBLE_FORCE_COLOR: '1'
|