Skip to content

Add molecule test for repos #7

Add molecule test for repos

Add molecule test for repos #7

Workflow file for this run

---
name: tbauriedel.influxdb2
on:
pull_request:
branches:
- '*'
jobs:
influxdb2:
runs-on: ubuntu-latest
env:
COLLECTION_NAMESPACE: tbauriedel
COLLECTION_NAME: influxdb2
strategy:
matrix:
distro: ['rockylinux9', 'ubuntu2204']
scenario: ['influxdb2']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies ansible
run: |
python3 -m pip install --upgrade pip
- name: Install dependencies 2
run:
python3 -m pip install -r requirements-test.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 }}