From 9dd8922b15fd1ae4e6cc470ba4bec056580f02c2 Mon Sep 17 00:00:00 2001 From: Marc Crebassa Date: Sat, 15 Nov 2025 18:41:32 +0100 Subject: [PATCH 1/3] Update README badges Signed-off-by: Marc Crebassa --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 From f1a589da809bcaf96c243f42e215513862149ce2 Mon Sep 17 00:00:00 2001 From: Marc Crebassa Date: Sat, 15 Nov 2025 19:08:39 +0100 Subject: [PATCH 2/3] test coverage upload to codecov Signed-off-by: Marc Crebassa --- .github/workflows/collection-tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/collection-tests.yml b/.github/workflows/collection-tests.yml index db0ff07..f14cf60 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: From 0b28d2e42d65fa511e86b192024c50946a792a6b Mon Sep 17 00:00:00 2001 From: Marc Crebassa Date: Sat, 15 Nov 2025 19:13:21 +0100 Subject: [PATCH 3/3] remove trailling spaces Signed-off-by: Marc Crebassa --- .github/workflows/collection-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/collection-tests.yml b/.github/workflows/collection-tests.yml index f14cf60..22dbcd1 100644 --- a/.github/workflows/collection-tests.yml +++ b/.github/workflows/collection-tests.yml @@ -71,7 +71,7 @@ jobs: - name: Run units tests run: | ansible-test units --coverage --docker - + - name: Generate coverage report #if: github.ref_name == 'main' run: | @@ -80,7 +80,7 @@ jobs: - name: Upload coverage report #if: github.ref_name == 'main' uses: codecov/codecov-action@v5 - + - name: Run sanity tests run: | ansible-test sanity --docker