diff --git a/.github/workflows/collection-tests.yml b/.github/workflows/collection-tests.yml index db0ff07..22dbcd1 100644 --- a/.github/workflows/collection-tests.yml +++ b/.github/workflows/collection-tests.yml @@ -70,11 +70,20 @@ jobs: - name: Run units tests run: | - ansible-test units --requirements --docker + ansible-test units --coverage --docker + + - name: Generate coverage report + #if: github.ref_name == 'main' + run: | + ansible-test --requirements coverage xml + + - name: Upload coverage report + #if: github.ref_name == 'main' + uses: codecov/codecov-action@v5 - name: Run sanity tests run: | - ansible-test sanity --requirements --docker + ansible-test sanity --docker molecule_test: defaults: diff --git a/README.md b/README.md index f523379..6981147 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ -[![Lint status](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions/workflows/lint.yml/badge.svg)](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions?workflow=Lint) -[![Tests for all supported versions](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions/workflows/tests.yml/badge.svg)](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions?workflow=Tests) -[![Tests for latest](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions/workflows/tests_latest.yml/badge.svg)](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions?workflow=Tests%20latest) +![GitHub License](https://img.shields.io/github/license/nextcloud/ansible-collection-nextcloud-admin) +![GitHub Release](https://img.shields.io/github/v/release/nextcloud/ansible-collection-nextcloud-admin?logo=Github) +![Ansible Collection Version](https://img.shields.io/ansible/collection/v/nextcloud/admin?logo=Ansible) +![Ansible Collection Downloads](https://img.shields.io/ansible/collection/d/nextcloud/admin?logo=Ansible) +[![Collection tests](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions/workflows/tests_and_release.yml/badge.svg?branch=main)](https://github.com/nextcloud/ansible-collection-nextcloud-admin/actions/workflows/tests_and_release.yml) +![Static Badge](https://img.shields.io/badge/Nextcloud_versions-32_%7C_31_%7C_30-green?logo=Nextcloud&logoColor=blue) + # Ansible collection for nextcloud administration