Finalisation de la CI pour la qualité de code (#34)

Co-authored-by: mcmuzzle <vezuvan@hotmail.com>
Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2026-02-09 10:08:52 +00:00
parent a400758b8d
commit f089f436a7

View File

@@ -49,14 +49,9 @@ jobs:
username: "gitea" username: "gitea"
password: "password" password: "password"
port: 2222 port: 2222
source: "${{ github.workspace }}/coverage-report/*" source: "coverage-report/*"
target: "/config/test" target: "/config/docs/workspace/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.event.pull_request.number }}/coverage-report/"
- name: Upload Combined Coverage XML strip_components: 1
uses: actions/upload-artifact@v3
with:
name: coverage
path: ${{ github.workspace }}/coverage-report/Cobertura.xml
retention-days: 5
- name: Publish Code Coverage Report - name: Publish Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0 uses: irongut/CodeCoverageSummary@v1.3.0
with: with:
@@ -79,7 +74,7 @@ jobs:
run: | run: |
COMMENT_CONTENT=$(cat code-coverage-results.md) COMMENT_CONTENT=$(cat code-coverage-results.md)
COMMENT_CONTENT="${COMMENT_CONTENT}\n\n📊 [Rapport HTML complet](https://docs.borealian.ovh/workspace/mcmuzzle/LittleTown/coverage-report/index.html)" COMMENT_CONTENT="${COMMENT_CONTENT}\n\n📊 [Rapport HTML complet](https://docs.borealian.ovh/workspace/${{ github.repository_owner }}//${{ github.event.repository.name }}/${{ github.event.pull_request.number }}/coverage-report/index.html)"
curl -X POST \ curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \