Update ansible-test.yml
This commit is contained in:
parent
6ef1a45d7b
commit
3972cd3590
23
.github/workflows/ansible-test.yml
vendored
23
.github/workflows/ansible-test.yml
vendored
@ -35,20 +35,17 @@ jobs:
|
|||||||
- name: Install ansible-base (${{ matrix.ansible }})
|
- name: Install ansible-base (${{ matrix.ansible }})
|
||||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||||
|
|
||||||
- name: galaxy
|
- name: Galaxy install
|
||||||
run: ansible-galaxy collection install grafana.grafana:0.0.7
|
run: ansible-galaxy collection install grafana.grafana
|
||||||
|
|
||||||
- name: test
|
- name: Run sanity tests
|
||||||
run: ansible-doc -t module grafana.grafana.alert_contact_point grafana.grafana.alert_notification_policy grafana.grafana.cloud_api_key grafana.grafana.cloud_plugin grafana.grafana.cloud_stack grafana.grafana.dashboard grafana.grafana.datasource grafana.grafana.folder
|
run: ansible-test sanity --docker -v --color --coverage
|
||||||
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
||||||
# - name: Run sanity tests
|
|
||||||
# run: ansible-test sanity --docker -v --color --coverage
|
|
||||||
# working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
|
||||||
|
|
||||||
# - name: Generate coverage report
|
- name: Generate coverage report
|
||||||
# run: ansible-test coverage xml -v --requirements --group-by command --group-by version
|
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
|
||||||
# working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
||||||
|
|
||||||
# - uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v3
|
||||||
# with:
|
with:
|
||||||
# fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
Loading…
Reference in New Issue
Block a user