File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
docker/rootfs/etc/nginx/conf.d Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ server {
6
6
return 302 /api/;
7
7
}
8
8
9
+ root /app/backend;
10
+ ___location /api/coverage {
11
+ try_files /index.html /coverage.html;
12
+ }
13
+
9
14
___location /api/ {
10
15
add_header X-Served-By $host;
11
16
chunked_transfer_encoding off;
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ if [ "${1:-}" = "--inside-docker" ]; then
43
43
echo -e " ${BLUE} ❯ ${CYAN} Testing backend code${RESET} "
44
44
cd /app/backend
45
45
[ -z " $( go tool fix -diff ./internal) " ]
46
- go test -json -cover ./internal/... | tparse
46
+ go test -json -cover -coverprofile=" $DIR /../../coverage.out" ./internal/... | tparse
47
+ go tool cover -html=" $DIR /../../coverage.out" -o " $DIR /../../coverage.html"
48
+ rm -f " $DIR /../../coverage.out"
47
49
golangci-lint -v run ./...
48
50
else
49
51
# run this script from within docker
You can’t perform that action at this time.
0 commit comments