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:
|
|
|
|
- debian12_master_slave
|
|
|
|
- debian12_upstream
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
path: "${{ github.repository }}"
|
|
|
|
|
2024-08-26 22:59:12 +07:00
|
|
|
- name: Set up Python 3.
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install lib dependencies
|
|
|
|
run: pip3 install netaddr
|
|
|
|
|
2024-08-26 21:56:50 +07:00
|
|
|
- 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'
|