Skip to content

Merge pull request #26 from korowa/test-check-mode #39

Merge pull request #26 from korowa/test-check-mode

Merge pull request #26 from korowa/test-check-mode #39

Workflow file for this run

---
name: CI
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- main
paths-ignore:
- "**.md"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check only *.yml extension is used
run: find . -name '*.yaml' | grep -v .pre-commit-config.yaml && exit 1 || echo OK
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
cache-dependency-path: ./requirements-test.txt
- name: Install dependencies
run: pip install -r requirements-test.txt
- name: Ansible lint
run: ansible-lint --offline --strict
molecule:
name: Molecule
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
distro:
- name: debian
version: "12"
- name: ubuntu
version: "22.04"
- name: ubuntu
version: "24.04"
- name: ubuntu
version: "24.04"
setup: client
- name: ubuntu
version: "24.04"
clickhouse_version: "24.9.2.42"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
cache-dependency-path: ./requirements-test.txt
- name: Install dependencies
run: pip install -r requirements-test.txt
- name: Molecule
run:
DISTRO_NAME=${{ matrix.distro.name }}
DISTRO_VER=${{ matrix.distro.version }}
CLICKHOUSE_SETUP=${{ matrix.distro.setup }}
CLICKHOUSE_VER=${{ matrix.distro.clickhouse_version }}
molecule test