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

34 lines
647 B
YAML
Raw Normal View History

2023-10-05 16:41:38 +13:00
matrix:
2023-10-16 21:42:53 +13:00
include:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: almalinux8
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
when:
event: [ push, manual ]
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:
2023-10-16 21:42:53 +13:00
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
2023-10-05 16:41:38 +13:00
volumes:
2023-10-16 21:42:53 +13:00
- /var/run/docker.sock:/var/run/docker.sock
2023-10-06 07:04:43 +13:00
commands:
2023-10-16 21:42:53 +13:00
- molecule test --scenario-name ${MOLECULE_SCENARIO:-default}
secrets: []
2023-10-05 16:41:38 +13:00
when:
2023-10-16 21:45:57 +13:00
event:
2023-10-16 21:42:53 +13:00
- push
- manual
2023-10-06 07:04:43 +13:00
depends_on:
2023-10-06 07:02:26 +13:00
- lint