@@ -86,14 +86,16 @@ jobs:
8686 id : coverage-paths
8787 run : |
8888 readarray -d '' coveragePathArray < <(find . -name "coverage.cobertura.xml" -print0)
89- coveragePaths=$(printf ",%s " "${coveragePathArray[@]}")
89+ coveragePaths=$(printf -- "-r %s " "${coveragePathArray[@]}")
9090 echo "COVERAGE_REPORT_PATHS=$coveragePaths" >> $GITHUB_OUTPUT
9191
9292 - name : Publish Code Coverage Results
93- uses : codacy/codacy-coverage-reporter-action@v1
94- with :
95- project-token : ${{ secrets.CODACY_PROJECT_TOKEN }}
96- coverage-reports : ${{ steps.coverage-paths.outputs.COVERAGE_REPORT_PATHS }}
93+ run : |
94+ auth="--project-token ${{ secrets.CODACY_PROJECT_TOKEN }}"
95+
96+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report $auth \
97+ ${{ steps.coverage-paths.outputs.COVERAGE_REPORT_PATHS }} --partial &&\
98+ bash <(curl -Ls https://coverage.codacy.com/get.sh) final $auth
9799
98100 report-benchmark-results :
99101 needs : build-and-test
@@ -107,11 +109,5 @@ jobs:
107109 with :
108110 name : benchmark-results
109111
110- - name : Report benchmark result
111- uses : rhysd/github-action-benchmark@v1
112- with :
113- name : Benchmark.Net Benchmark
114- tool : " benchmarkdotnet"
115- output-file-path : BenchmarkDotNet.Artifacts/results/NHapi.Benchmarks.LargeEmbeddedFileTest-report-full-compressed.json
116- auto-push : false
117- summary-always : true
112+ - name : ' Report benchmark result'
113+ run : cat ./NHapi.Benchmarks.LargeEmbeddedFileTest-report-github.md >> $GITHUB_STEP_SUMMARY
0 commit comments