Add Support for 6.5 (7.0 Preview) #404
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "community.zabbix.zabbix_proxy" | |
on: | |
push: | |
paths: | |
- "roles/zabbix_proxy/**" | |
- "molecule/zabbix_proxy/**" | |
- "molecule/requirements.txt" | |
- ".github/workflows/proxy.yml" | |
pull_request: | |
paths: | |
- "roles/zabbix_proxy/**" | |
- "molecule/zabbix_proxy/**" | |
- "molecule/requirements.txt" | |
- ".github/workflows/proxy.yml" | |
jobs: | |
molecule: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
container: | |
- rockylinux9 | |
- rockylinux8 | |
- centos7 | |
- ubuntu2204 | |
- ubuntu2004 | |
- debian12 | |
- debian11 | |
- debian10 | |
collection_role: | |
- zabbix_proxy | |
database: | |
- mysql | |
- pgsql | |
- sqlite3 | |
version: | |
- v60 | |
- v65 | |
include: | |
- interpreter: python3 | |
- interpreter: python | |
container: centos7 | |
exclude: | |
- container: debian12 | |
version: v62 | |
- container: centos7 | |
version: v65 | |
- container: debian10 | |
version: v65 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r molecule/requirements.txt | |
- name: Build the collection | |
run: | | |
collection_file=$( basename $(ansible-galaxy collection build -f | awk -F" " '{print $NF}')) | |
echo "COLLECTION_FILE=$collection_file" >> $GITHUB_ENV | |
- name: Install the collection | |
run: ansible-galaxy collection install $COLLECTION_FILE | |
- name: Run role tests | |
run: >- | |
MY_MOLECULE_CONTAINER=${{ matrix.container }} | |
MY_MOLECULE_IMAGE=${{ matrix.container }} | |
MY_MOLECULE_VERSION=${{ matrix.version }} | |
MY_MOLECULE_DATABASE=${{ matrix.database }} | |
MY_MOLECULE_INTERPRETER=${{ matrix.interpreter }} | |
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.command }} | |
molecule test -s ${{ matrix.collection_role }} |