File tree 5 files changed +19
-26
lines changed
5 files changed +19
-26
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,14 @@ jobs:
86
86
id : coverage-paths
87
87
run : |
88
88
readarray -d '' coveragePathArray < <(find . -name "coverage.cobertura.xml" -print0)
89
- coveragePaths=$(printf ",%s " "${coveragePathArray[@]}")
89
+ coveragePaths=$(printf -- "-r %s " "${coveragePathArray[@]}")
90
90
echo "COVERAGE_REPORT_PATHS=$coveragePaths" >> $GITHUB_OUTPUT
91
91
92
92
- 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
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
95
+ -- project-token ${{ secrets.CODACY_PROJECT_TOKEN }} \
96
+ ${{ steps.coverage-paths.outputs.COVERAGE_REPORT_PATHS }}
97
97
98
98
report-benchmark-results :
99
99
needs : build-and-test
@@ -107,11 +107,5 @@ jobs:
107
107
with :
108
108
name : benchmark-results
109
109
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
110
+ - name : ' Report benchmark result'
111
+ run : cat ./NHapi.Benchmarks.LargeEmbeddedFileTest-report-github.md >> $GITHUB_STEP_SUMMARY
Original file line number Diff line number Diff line change @@ -24,17 +24,19 @@ jobs:
24
24
uses : actions/download-artifact@v4
25
25
with :
26
26
name : coverage-reports
27
+ github-token : ${{ secrets.GITHUB_TOKEN }}
27
28
run-id : ${{ github.event.workflow_run.id }}
28
29
29
30
- name : Set Coverage Report Paths
30
31
id : coverage-paths
31
32
run : |
32
33
readarray -d '' coveragePathArray < <(find . -name "coverage.cobertura.xml" -print0)
33
- coveragePaths=$(printf ",%s " "${coveragePathArray[@]}")
34
+ coveragePaths=$(printf -- "-r %s " "${coveragePathArray[@]}")
34
35
echo "COVERAGE_REPORT_PATHS=$coveragePaths" >> $GITHUB_OUTPUT
35
36
36
37
- name : Publish Code Coverage Results
37
- uses : codacy/codacy-coverage-reporter-action@v1
38
- with :
39
- project-token : ${{ secrets.CODACY_PROJECT_TOKEN }}
40
- coverage-reports : ${{ steps.coverage-paths.outputs.COVERAGE_REPORT_PATHS }}
38
+ run : |
39
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
40
+ --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} \
41
+ --commit-uuid ${{ github.event.workflow_run.head_sha }} \
42
+ ${{ steps.coverage-paths.outputs.COVERAGE_REPORT_PATHS }}
Original file line number Diff line number Diff line change 21
21
uses : actions/download-artifact@v4
22
22
with :
23
23
name : unit-test-results
24
+ github-token : ${{ secrets.GITHUB_TOKEN }}
24
25
run-id : ${{ github.event.workflow_run.id }}
25
26
26
27
- name : Publish Unit Test Results
Original file line number Diff line number Diff line change 20
20
uses : actions/download-artifact@v4
21
21
with :
22
22
name : benchmark-results
23
+ github-token : ${{ secrets.GITHUB_TOKEN }}
23
24
run-id : ${{ github.event.workflow_run.id }}
24
25
25
- - name : Report benchmark result
26
- uses : rhysd/github-action-benchmark@v1
27
- with :
28
- name : Benchmark.Net Benchmark
29
- tool : " benchmarkdotnet"
30
- output-file-path : BenchmarkDotNet.Artifacts/results/NHapi.Benchmarks.LargeEmbeddedFileTest-report-full-compressed.json
31
- auto-push : false
32
- summary-always : true
26
+ - name : ' Report benchmark result'
27
+ run : cat ./NHapi.Benchmarks.LargeEmbeddedFileTest-report-github.md >> $GITHUB_STEP_SUMMARY
Original file line number Diff line number Diff line change 9
9
10
10
[ MemoryDiagnoser ]
11
11
[ JsonExporterAttribute . FullCompressed ]
12
+ [ MarkdownExporterAttribute . GitHub ]
12
13
[ SimpleJob ( RuntimeMoniker . Net462 , baseline : true ) ]
13
14
[ SimpleJob ( RuntimeMoniker . Net60 ) ]
14
15
[ SimpleJob ( RuntimeMoniker . Net80 ) ]
You can’t perform that action at this time.
0 commit comments