From 2086b268dd1e0509d2a020fa660e0af36c8f8dff Mon Sep 17 00:00:00 2001 From: "M.Palerme" Date: Mon, 30 Sep 2024 15:03:13 +0200 Subject: [PATCH] Update link of badge in readme --- .github/workflows/test_unit.yml | 61 +++++++++++++++++++++++++++++++++ README.md | 13 ++----- 2 files changed, 63 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_unit.yml b/.github/workflows/test_unit.yml index 40dd1fd..cf4d8e3 100644 --- a/.github/workflows/test_unit.yml +++ b/.github/workflows/test_unit.yml @@ -137,3 +137,64 @@ jobs: git add badges/* git commit -m "Update test badges" git push + - uses: wow-actions/add-badges@v1 + env: + repo_url: ${{ github.repository }} + + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + center: true + badges: | + [ + [ + { + "badge": "${{ github.repository }}/badges/tests-result.svg", + "alt": "Result of tests", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/tests-total.svg", + "alt": "Total tests", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/tests-passed.svg", + "alt": "Passed tests", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/tests-failed.svg", + "alt": "Failed tests", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/tests-todo.svg", + "alt": "Todo tests", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + + ], + [ + { + "badge": "${{ github.repository }}/badges/coverage_total.svg", + "alt": "Coverage Total", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/coverage_lines.svg", + "alt": "Coverage Lines", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/coverage_functions.svg", + "alt": "Coverage Functions", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "badge": "${{ github.repository }}/badges/coverage_branches.svg", + "alt": "Coverage Branches", + "link": "${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + ] + ] + diff --git a/README.md b/README.md index 3a49ae1..149254a 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,8 @@ SPDX-License-Identifier: MIT # EP2M2 : Metabolomic Target Analyzes Manager. ## Tests -[![result](./badges/tests-result.svg) -![total](./badges/tests-total.svg) -![passed](./badges/tests-passed.svg) -![failed](./badges/tests-failed.svg) -![todo](./badges/tests-todo.svg)](https://github.com/p2m2/EP2M2/actions/workflows/test_unit.yml) - -![Branches](./badges/coverage-branches.svg) -![Functions](./badges/coverage-functions.svg) -![Lines](./badges/coverage-lines.svg) -![Statements](./badges/coverage-statements.svg) -![Coverage total](./badges/coverage-total.svg) + + ## Features - Extraction of formats files of the metabolomics data acquisition devices of the P2M2 platform - gcms