Skip to content

Merge pull request #38 from NETWAYS/dependabot/github_actions/actions… #251

Merge pull request #38 from NETWAYS/dependabot/github_actions/actions…

Merge pull request #38 from NETWAYS/dependabot/github_actions/actions… #251

Workflow file for this run

---
name: CI
'on':
pull_request:
push:
branches:
- netways
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v6
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
- name: Lint code.
run: |
yamllint .
ansible-lint .
molecule-default:
name: Molecule (default)
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
distro:
- debian12
- rockylinux8
- rockylinux9
scenario:
- patroni-etcdv2-ssl
- patroni-etcdv3-ssl
steps:
- name: Check out the codebase.
uses: actions/checkout@v6
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install test dependencies.
run: sudo apt update
- name: Install test dependencies.
run: sudo apt install -y libssl-dev
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install 'ansible-core<2.17' ansible-lint molecule molecule-docker pytest passlib requests
- name: Run Molecule tests
run: molecule test -s ${{ matrix.scenario }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}