Dockerfile: use test-coverage target

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-01-23 10:05:35 +01:00
parent 72447c98b0
commit c7dfb4c220
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -59,7 +59,7 @@ RUN --mount=type=bind,target=.,rw \
--mount=type=bind,from=docker,source=/usr/local/bin/docker,target=/usr/bin/docker \
--mount=type=bind,from=buildx,source=/buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \
--mount=type=bind,from=buildx,source=/buildx,target=/usr/bin/buildx \
yarn run test --coverageDirectory=/tmp/coverage
yarn run test-coverage --coverageDirectory=/tmp/coverage
FROM scratch AS test-coverage
COPY --from=test /tmp/coverage /