ci: install collection locally to run tests
This commit is contained in:
parent
74c9f8b2f8
commit
29675007db
@ -47,18 +47,16 @@ jobs:
|
|||||||
working-directory: ${{ gitea.workspace }}
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
|
||||||
- name: Setup testing environment
|
- name: Setup testing environment
|
||||||
run: |
|
run: ansible-galaxy collection install ${{ gitea.workspace }}
|
||||||
mkdir -p /tmp/ansible_collections/ednz_cloud
|
|
||||||
ln -s ${{ gitea.workspace }} /tmp/ansible_collections/ednz_cloud/infomaniak
|
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ gitea.workspace }}
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
|
||||||
- name: Run ansible unit tests
|
- name: Run ansible unit tests
|
||||||
run: ansible-test units --coverage
|
run: ansible-test units --coverage
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: /tmp/ansible_collections/ednz_cloud/infomaniak
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
|
||||||
- name: Print coverage informations
|
- name: Print coverage informations
|
||||||
run: ansible-test coverage report
|
run: ansible-test coverage report
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: /tmp/ansible_collections/ednz_cloud/infomaniak
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
Loading…
Reference in New Issue
Block a user