Skip to content

Commit

Permalink
Fix Molecule test dependencies (#15)
Browse files Browse the repository at this point in the history
* Add quotes to install of molecule test dependencies

* Add explicit requirement on community.docker for testing due to the below error:

INFO     Running ansible-galaxy collection install -v community.docker:>=1.8.0
  CRITICAL Collection 'community.docker' not found in '['/home/runner/.cache/ansible-lint/b1bca4/collections', '/home/runner/.ansible/collections', '/usr/share/ansible/collections']'
  • Loading branch information
sleighzy committed Aug 29, 2021
1 parent 9a3d2c3 commit 3027475
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install ansible ansible-lint yamllint docker molecule-docker molecule[docker,lint]
run: pip3 install ansible ansible-lint yamllint docker molecule-docker "molecule[docker,lint]"

- name: Run Molecule tests.
run: molecule test
Expand Down
1 change: 1 addition & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependency:
ignore-certs: True
ignore-errors: True
role-file: molecule/default/requirements.yml
requirements-file: molecule/default/requirements.yml
driver:
name: docker
platforms:
Expand Down
2 changes: 2 additions & 0 deletions molecule/default/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
roles:
- sleighzy.zookeeper
collections:
- community.docker

0 comments on commit 3027475

Please sign in to comment.