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
# - windows-latest # FIXME: some tests are failing on the Windows runner, as well as on Appveyor since June 24, 2018: https://ci.appveyor.com/project/docker/cli/history
46
+
steps:
47
+
-
48
+
name: Prepare git
49
+
if: matrix.os == 'windows-latest'
50
+
run: |
51
+
git config --system core.autocrlf false
52
+
git config --system core.eol lf
53
+
-
54
+
name: Checkout
55
+
uses: actions/checkout@v2
56
+
with:
57
+
path: ${{ env.GOPATH }}/src/github.com/docker/cli
58
+
-
59
+
name: Set up Go
60
+
uses: actions/setup-go@v2
61
+
with:
62
+
go-version: 1.16.10
63
+
-
64
+
name: Test
65
+
run: |
66
+
go test -coverprofile=/tmp/coverage.txt $(go list ./... | grep -vE '/vendor/|/e2e/')
test-unit: ## run unit tests, to change the output format use: GOTESTSUM_FORMAT=(dots|short|standard-quiet|short-verbose|standard-verbose) make test-unit
18
-
gotestsum $(TESTFLAGS) -- $${TESTDIRS:-$(shell go list ./... | grep -vE '/vendor/|/e2e/')}
19
-
20
16
.PHONY: test
21
17
test: test-unit ## run tests
22
18
19
+
.PHONY: test-unit
20
+
test-unit: ## run unit tests, to change the output format use: GOTESTSUM_FORMAT=(dots|short|standard-quiet|short-verbose|standard-verbose) make test-unit
21
+
gotestsum -- $${TESTDIRS:-$(shell go list ./... | grep -vE '/vendor/|/e2e/')} $(TESTFLAGS)
22
+
23
23
.PHONY: test-coverage
24
24
test-coverage: ## run test coverage
25
-
gotestsum -- -coverprofile=coverage.txt $(shell go list ./... | grep -vE '/vendor/|/e2e/')
25
+
mkdir -p ./coverage
26
+
gotestsum -- $(shell go list ./... | grep -vE '/vendor/|/e2e/') -coverprofile=coverage.txt
0 commit comments