mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-06 22:57:10 +02:00
chore: apply coverage analysis to all packages
This allows us to see test coverage of packages that can't be unit-tested directly. Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
This commit is contained in:
parent
7b0ac4682d
commit
767f3b95ef
@ -5,7 +5,7 @@ coverage:
|
|||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
default:
|
default:
|
||||||
target: 26%
|
target: 15%
|
||||||
threshold: 0.5%
|
threshold: 0.5%
|
||||||
base: auto
|
base: auto
|
||||||
if_ci_failed: success
|
if_ci_failed: success
|
||||||
|
@ -369,7 +369,7 @@ RUN unlink /etc/ssl
|
|||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
ARG TESTPKGS
|
ARG TESTPKGS
|
||||||
ENV PLATFORM container
|
ENV PLATFORM container
|
||||||
RUN --security=insecure --mount=type=cache,id=testspace,target=/tmp --mount=type=cache,target=/.cache go test -v -covermode=atomic -coverprofile=coverage.txt -count 1 -p 4 ${TESTPKGS}
|
RUN --security=insecure --mount=type=cache,id=testspace,target=/tmp --mount=type=cache,target=/.cache go test -v -covermode=atomic -coverprofile=coverage.txt -coverpkg=${TESTPKGS} -count 1 -p 4 ${TESTPKGS}
|
||||||
FROM scratch AS unit-tests
|
FROM scratch AS unit-tests
|
||||||
COPY --from=unit-tests-runner /src/coverage.txt /coverage.txt
|
COPY --from=unit-tests-runner /src/coverage.txt /coverage.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user