Skip to content

Commit a8da549

Browse files
committed
skip cmd/docker-trust as it's a separate module
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 8561791 commit a8da549

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
-
7272
name: Test
7373
run: |
74-
go test -coverprofile=/tmp/coverage.txt $(go list ./... | grep -vE '/vendor/|/e2e/')
74+
go test -coverprofile=/tmp/coverage.txt $(go list ./... | grep -vE '/vendor/|/e2e/|/cmd/docker-trust')
7575
go tool cover -func=/tmp/coverage.txt
7676
working-directory: ${{ env.GOPATH }}/src/github.com/docker/cli
7777
shell: bash

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ENV GO111MODULE=auto
110110
RUN --mount=type=bind,target=.,rw \
111111
--mount=type=cache,target=/root/.cache \
112112
--mount=type=cache,target=/go/pkg/mod \
113-
gotestsum -- -coverprofile=/tmp/coverage.txt $(go list ./... | grep -vE '/vendor/|/e2e/')
113+
gotestsum -- -coverprofile=/tmp/coverage.txt $(go list ./... | grep -vE '/vendor/|/e2e/|/cmd/docker-trust')
114114

115115
FROM scratch AS test-coverage
116116
COPY --from=test /tmp/coverage.txt /coverage.txt

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ test: test-unit ## run tests
3434

3535
.PHONY: test-unit
3636
test-unit: ## run unit tests, to change the output format use: GOTESTSUM_FORMAT=(dots|short|standard-quiet|short-verbose|standard-verbose) make test-unit
37-
gotestsum -- $${TESTDIRS:-$(shell go list ./... | grep -vE '/vendor/|/e2e/')} $(TESTFLAGS)
37+
gotestsum -- $${TESTDIRS:-$(shell go list ./... | grep -vE '/vendor/|/e2e/|/cmd/docker-trust')} $(TESTFLAGS)
3838

3939
.PHONY: test-coverage
4040
test-coverage: ## run test coverage
4141
mkdir -p $(CURDIR)/build/coverage
42-
gotestsum -- $(shell go list ./... | grep -vE '/vendor/|/e2e/') -coverprofile=$(CURDIR)/build/coverage/coverage.txt
42+
gotestsum -- $(shell go list ./... | grep -vE '/vendor/|/e2e/|/cmd/docker-trust') -coverprofile=$(CURDIR)/build/coverage/coverage.txt
4343

4444
.PHONY: lint
4545
lint: ## run all the lint tools

0 commit comments

Comments
 (0)