2024-02-18 19:39:59 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- &molecule_base
|
2024-08-18 14:05:11 +00:00
|
|
|
image: ghcr.io/ansible/community-ansible-dev-tools
|
2024-02-18 19:39:59 +00:00
|
|
|
group: molecule
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|
2024-08-18 11:43:41 +00:00
|
|
|
HCLOUD_TOKEN:
|
|
|
|
from_secret: molecule_hcloud_token
|
2024-02-18 19:39:59 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: molecule-default
|
|
|
|
<<: *molecule_base
|
|
|
|
commands:
|
2024-08-18 18:56:16 +00:00
|
|
|
# TODO: https://github.com/woodpecker-ci/woodpecker/issues/3552
|
|
|
|
- export HOME=/home/podman
|
2024-02-18 19:39:59 +00:00
|
|
|
- molecule test -s default
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- lint
|