You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,6 +48,7 @@ RUN --mount=type=cache,target=/go/pkg go list -mod=readonly all >/dev/null
45
48
# runs gofumpt
46
49
FROM base AS lint-gofumpt
47
50
RUN find . -name '*.pb.go' | xargs -r rm
51
+
RUN find . -name '*.pb.gw.go' | xargs -r rm
48
52
RUN FILES="$(gofumports -l -local github.com/talos-systems/crypto .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'gofumports -w -local github.com/talos-systems/crypto .':\n${FILES}"; exit 1)
49
53
50
54
# runs golangci-lint
@@ -61,7 +65,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/g
61
65
# runs unit-tests
62
66
FROM base AS unit-tests-run
63
67
ARG TESTPKGS
64
-
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg --mount=type=cache,target=/tmp go test -v -covermode=atomic -coverprofile=coverage.txt -count 1 ${TESTPKGS}
68
+
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg --mount=type=cache,target=/tmp go test -v -covermode=atomic -coverprofile=coverage.txt -coverpkg=${TESTPKGS} -count 1 ${TESTPKGS}
0 commit comments