@@ -444,47 +444,30 @@ jobs:
444444 E2ETracingEnabled : ${{ env.E2E_TRACING_ENABLED }}
445445 HeadlessTesting : ${{ env.HEADLESS_TESTING }}
446446 run : |
447- dotnet test --collect:"XPlat Code Coverage"
448-
447+ dotnet test --collect:"XPlat Code Coverage" --settings ./coverlet.runsettings \
448+ /p:Threshold=80,50,80
449449
450450 - name : Generate Coverage Report
451451 run : |
452452 dotnet reportgenerator \
453453 -reports:"**/TestResults/**/coverage.cobertura.xml" \
454454 -targetdir:coveragereport \
455- -reporttypes:Html \
456- -thresholdtype:line \
457- -threshold:80
455+ -reporttypes:Html
456+ #\
457+ # -thresholdtype:line \
458+ # -threshold:80
458459
459460 - name : upload coverage report
460461 if : always()
461462 uses : actions/upload-artifact@v4
462463 with :
463464 name : coverage-report
464465 path : coveragereport
465-
466- - name : Debug PACKAGES_TOKEN value (Optional)
466+
467+ - name : Debug PACKAGES_TOKEN value (Optional) qqqq
467468 run : |
468469 echo "PACKAGES_TOKEN is set."
469470 echo "PACKAGES_TOKEN=$PACKAGES_TOKEN" # This should print nothing, it's a secret!
470- echo "run id"
471- echo "does this run id match above ${GITHUB_RUN_ID}"
472-
473- # - name: Get artifact location
474- # env:
475- # PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
476- # GH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
477- # run: |
478- # # Get the artifact list for the current workflow run
479- # ARTIFACT_LIST=$(gh api "repos/TechnologyEnhancedLearning/TELBlazor/actions/runs/${GITHUB_RUN_ID}/artifacts")
480- # # Echo the entire artifact list for debugging purposes
481- # echo "Artifact List: $ARTIFACT_LIST"
482- # # Extract the download URL from the artifact list (first artifact in the list)
483- # #ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].archive_download_url')
484- # ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].url')
485- # # Echo the artifact URL to confirm
486- # echo "Artifact URL: $ARTIFACT_URL"
487- # echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
488471
489472 - name : Get artifact location
490473 env :
0 commit comments