Skip to content

Merge pull request #315 from Icinga/fix/302-icingadb-database-tls-ins… #9

Merge pull request #315 from Icinga/fix/302-icingadb-database-tls-ins…

Merge pull request #315 from Icinga/fix/302-icingadb-database-tls-ins… #9

Workflow file for this run

---
# These Jobs should be always be run against the latest version of ansible on the systems
# Feel free to update python and ansible versions
#
# In addition to keep them quick and no additional variables are used.
#
name: role-icingadb
on:
push:
branches:
- main
- 'feature/**'
- 'fix/**'
- '!doc/**'
paths:
- roles/icingadb/**
- molecule/role-icingadb/**
pull_request:
branches:
- 'feature/**'
- 'fix/**'
- '!doc/**'
jobs:
icingadb_latest:
runs-on: ubuntu-latest
env:
COLLECTION_NAMESPACE: icinga
COLLECTION_NAME: icinga
strategy:
fail-fast: false
max-parallel: 1
matrix:
distro: [ubuntu2204]
python: ['3.10']
ansible: ['2.16.2']
scenario: [role-icingadb]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies ansible
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt
- name: Install collection
run: |
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
- name: Test with molecule
run: |
ansible --version
molecule --version
molecule test -s ${{ matrix.scenario }}
env:
MOLECULE_DISTRO: ${{ matrix.distro }}