template / commit
Build now passes in Windows, hopefully this will work with CI as well.
.gitignore | 2 ++ Makefile | 7 +++---- profile_test.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 2bd0841..8582cfa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ dist template.exe template test +test-coverage.out +test-coverage.html diff --git a/Makefile b/Makefile index 9201aa9..ae48184 100644 --- a/Makefile +++ b/Makefile @@ -13,14 +13,13 @@ lint: build golangci-lint run test: build - mkdir -p test - go test -v ./... -coverprofile="./test/coverage.out" + go test -v ./... -coverprofile="./test-coverage.out" test_coverage: test - go tool cover -html="./test/coverage.out" -o "./test/coverage.html" + go tool cover -html="./test-coverage.out" -o "./test-coverage.html" test_coverage_html: test_coverage - open "./test/coverage.html" + open "./test-coverage.html" install: build test lint go install diff --git a/profile_test.go b/profile_test.go index d276b89..5245457 100644 --- a/profile_test.go +++ b/profile_test.go @@ -352,7 +352,7 @@ func getCurrentOs() OSType { } } func getOtherOs(currentOs OSType) OSType { - if currentOs == "windows" { + if currentOs == "Windows" { return "Mac" } return "Windows"