Update ansible-test.yml

This commit is contained in:
Ishan Jain 2022-08-11 15:24:11 +05:30 committed by GitHub
parent 6ef1a45d7b
commit 3972cd3590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,20 +35,17 @@ jobs:
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: galaxy
run: ansible-galaxy collection install grafana.grafana:0.0.7
- name: Galaxy install
run: ansible-galaxy collection install grafana.grafana
- name: test
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
- name: Run sanity tests
run: ansible-test sanity --docker -v --color --coverage
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
# run: ansible-test coverage xml -v --requirements --group-by command --group-by version
# working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Generate coverage report
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
# - uses: codecov/codecov-action@v3
# with:
# fail_ci_if_error: false
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false