Added requirements file;Removed some collection stuff

This commit is contained in:
Werner Dijkerman
2020-08-01 16:24:03 +02:00
parent 1112020f45
commit add696bc78
2 changed files with 12 additions and 8 deletions

View File

@ -9,6 +9,7 @@ on:
- 'molecule/**' - 'molecule/**'
- 'tasks/**' - 'tasks/**'
- 'templates/**' - 'templates/**'
- '.github/workflows/telegraf.yml'
pull_request: pull_request:
paths: paths:
- 'defaults/**' - 'defaults/**'
@ -18,6 +19,7 @@ on:
- 'molecule/**' - 'molecule/**'
- 'tasks/**' - 'tasks/**'
- 'templates/**' - 'templates/**'
- '.github/workflows/telegraf.yml'
jobs: jobs:
molecule: molecule:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
@ -55,14 +57,6 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r molecule/requirements.txt pip install -r molecule/requirements.txt
- name: Build the collection
run: |
collection_file=$( basename $(ansible-galaxy collection build -f | awk -F" " '{print $NF}'))
echo "::set-env name=COLLECTION_FILE::$collection_file"
- name: Install the collection
run: ansible-galaxy collection install $COLLECTION_FILE
- name: Run role tests - name: Run role tests
run: >- run: >-
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }} MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}

10
molecule/requirements.txt Normal file
View File

@ -0,0 +1,10 @@
# Install CI dependencies for the Zabbix Roles
ansible==2.9.11
ansible-lint==4.2.0
docker==4.2.1
molecule==3.0.4
netaddr==0.7.19
testinfra==5.2.1
zabbix-api==0.5.4
ipaddr==2.2.0
ipaddress==1.0.23