Skip to content

Commit

Permalink
Update molecule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincoakley committed Oct 19, 2022
1 parent fbe39f3 commit 55d44f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
molecule_distro: ['centos7', 'centos8', 'ubuntu1804', 'ubuntu2004']
molecule_distro: ['rockylinux8', 'ubuntu2004', 'ubuntu2204']
env:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks

Expand All @@ -21,7 +21,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible-lint flake8 molecule docker
pip install ansible ansible-lint flake8 molecule molecule-docker docker yamllint
ansible --version
ansible-lint --version
molecule --version
- name: Test with molecule
run: |
molecule test --all
Expand Down
7 changes: 7 additions & 0 deletions molecule/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
warn_list:
- internal-error
- role-name
- fqcn-builtins
skip_list:
- yaml
7 changes: 4 additions & 3 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint
ansible-lint -c molecule/ansible-lint.yml .
flake8
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
provisioner:
Expand Down

0 comments on commit 55d44f7

Please sign in to comment.