File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ pipeline {
87
87
archiveArtifacts allowEmptyArchive : false , artifacts : ' bin/*'
88
88
publishHTML([
89
89
allowMissing : false ,
90
- alwaysLinkToLastBuild : true ,
90
+ alwaysLinkToLastBuild : false ,
91
91
keepAll : false ,
92
- reportDir : ' backend-coverage ' ,
93
- reportFiles : ' index .html' ,
94
- reportName : ' Backend Coverage ' ,
92
+ reportDir : ' html-reports ' ,
93
+ reportFiles : ' backend-coverage .html' ,
94
+ reportName : ' HTML Reports ' ,
95
95
useWrapperFileDirectly : true
96
96
])
97
97
}
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ if [ "${1:-}" = "--inside-docker" ]; then
44
44
cd /app/backend
45
45
[ -z " $( go tool fix -diff ./internal) " ]
46
46
go test -json -cover -coverprofile=" /tmp/coverage.out" ./internal/... | tparse
47
- mkdir " $DIR /../../backend-coverage "
48
- go tool cover -html=" /tmp/coverage.out" -o " $DIR /../../backend-coverage/index .html"
47
+ mkdir " $DIR /../../html-reports "
48
+ go tool cover -html=" /tmp/coverage.out" -o " $DIR /../../html-reports/ backend-coverage.html"
49
49
rm -f " /tmp/coverage.out"
50
- chown -R 1000:1000 " $DIR /../../backend-coverage "
50
+ chown -R 1000:1000 " $DIR /../../html-reports "
51
51
golangci-lint -v run ./...
52
52
else
53
53
# run this script from within docker
You can’t perform that action at this time.
0 commit comments