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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user