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 }}
|
||||
|
||||
- name: Setup testing environment
|
||||
run: |
|
||||
mkdir -p /tmp/ansible_collections/ednz_cloud
|
||||
ln -s ${{ gitea.workspace }} /tmp/ansible_collections/ednz_cloud/infomaniak
|
||||
run: ansible-galaxy collection install ${{ gitea.workspace }}
|
||||
shell: bash
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
|
||||
- name: Run ansible unit tests
|
||||
run: ansible-test units --coverage
|
||||
shell: bash
|
||||
working-directory: /tmp/ansible_collections/ednz_cloud/infomaniak
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
|
||||
- name: Print coverage informations
|
||||
run: ansible-test coverage report
|
||||
shell: bash
|
||||
working-directory: /tmp/ansible_collections/ednz_cloud/infomaniak
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
|
Loading…
Reference in New Issue
Block a user