Skip to content

Commit 088beb1

Browse files
committed
Add new test-all command to test in windows
1 parent b872350 commit 088beb1

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
go-version: "1.16"
2020
- name: "Run tests"
2121
run: |
22-
make test
22+
make test-all
2323
- name: "Test gen doc"
2424
run: |
2525
make gen-doc

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ gen-doc: ## generate markdown documentation
2121
cat ./docs/*.md >> ./docs/reference.md
2222
find ./docs -type f -not -name 'reference.md' -delete
2323

24-
test: tidy cmd pkg ## launch tests
25-
test -z "`gofmt -d . | tee /dev/stderr`"
24+
test-linux:
2625
go test $(TEST_OPTS) ./...
26+
27+
test-windows:
28+
GOOS=windows go test $(TEST_OPTS) ./...
29+
30+
test-fmt:
31+
test -z "`gofmt -d . | tee /dev/stderr`"
32+
33+
test: tidy cmd pkg test-fmt test-linux ## launch tests
34+
35+
test-all: tidy cmd pkg test-fmt test-linux test-windows ## launch tests

0 commit comments

Comments
 (0)