Files
ansible-role-common/.woodpecker/test.yml

24 lines
503 B
YAML
Raw Normal View History

2023-10-05 16:41:38 +13:00
matrix:
2023-10-06 07:04:43 +13:00
MOLECULE_DISTRO:
2023-10-05 16:41:38 +13:00
- centos7
- almalinux8
2023-10-06 07:04:43 +13:00
2023-10-05 16:41:38 +13:00
steps:
2023-10-05 17:19:05 +13:00
test:
name: Test on ${MOLECULE_DISTRO}
2023-10-05 16:41:38 +13:00
image: guisea/ansible-molecule
pull: true
environment:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
2023-10-08 22:03:52 +13:00
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
2023-10-05 16:41:38 +13:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-10-06 07:04:43 +13:00
commands:
2023-10-05 16:41:38 +13:00
- molecule test --all
when:
event: push
2023-10-06 07:04:43 +13:00
depends_on:
2023-10-06 07:02:26 +13:00
- lint