Update ansible-test.yml

This commit is contained in:
Ishan Jain 2022-08-11 15:19:37 +05:30 committed by GitHub
parent 1f1de060ed
commit 07a88ab76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,14 +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: Run sanity tests - name: test
run: ansible-test sanity --docker -v --color --coverage 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
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