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

Merged
mcmuzzle merged 6 commits from finalisationCI into main 2026-02-09 10:08:52 +00:00

View File

@@ -49,14 +49,9 @@ jobs:
username: "gitea"
password: "password"
port: 2222
source: "${{ github.workspace }}/coverage-report/*"
target: "/config/test"
- name: Upload Combined Coverage XML
uses: actions/upload-artifact@v3
with:
name: coverage
path: ${{ github.workspace }}/coverage-report/Cobertura.xml
retention-days: 5
source: "coverage-report/*"
target: "/config/docs/workspace/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ github.event.pull_request.number }}/coverage-report/"
strip_components: 1
- name: Publish Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
@@ -79,7 +74,7 @@ jobs:
run: |
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 \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \