mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 13:02:37 +00:00
Issue #10: Move integration tests into molecule playbook.
This commit is contained in:
10
.github/workflows/ansible-test.yml
vendored
10
.github/workflows/ansible-test.yml
vendored
@@ -84,8 +84,12 @@ jobs:
|
||||
mkdir -p /home/runner/.ansible
|
||||
ln -s /home/runner/work/kubernetes /home/runner/.ansible/collections
|
||||
|
||||
- name: Copy kubernetes integration test role into roles directory.
|
||||
run: cp -R tests/integration/targets/kubernetes roles/
|
||||
# TODO: Once community.general is on public Galaxy, drop the -s.
|
||||
- name: Install community.general role to get json_query filter.
|
||||
run: |
|
||||
cp tests/integration/targets/kubernetes/files/manifest-example/MANIFEST.json MANIFEST.json
|
||||
pip install jmespath
|
||||
ansible-galaxy collection install -vvv -s https://sivel.eng.ansible.com/api community.general
|
||||
|
||||
- name: Run molecule default test scenario
|
||||
run: molecule --debug test
|
||||
run: molecule test
|
||||
|
||||
Reference in New Issue
Block a user