27 lines
495 B
YAML
27 lines
495 B
YAML
---
|
|
when:
|
|
- event: [pull_request, tag]
|
|
- event: [push, manual]
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
variables:
|
|
- &molecule_base
|
|
image: quay.io/thegeeklab/molecule:6
|
|
group: molecule
|
|
secrets:
|
|
- source: molecule_hcloud_token
|
|
target: HCLOUD_TOKEN
|
|
environment:
|
|
PY_COLORS: "1"
|
|
INSTANCE_NAME: "-${CI_COMMIT_SHA:0:8}"
|
|
|
|
steps:
|
|
- name: molecule-default
|
|
<<: *molecule_base
|
|
commands:
|
|
- molecule test -s default
|
|
|
|
depends_on:
|
|
- lint
|