diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-27 22:06:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 22:06:29 +0800 |
commit | a9dcf4ce743df40c03c0e7ae239a5f5d060d1f5b (patch) | |
tree | ddb1c79d2e1ef1aafc0b3fc30a5b9d3041583969 /internal | |
parent | 30c047feddd1951bf53f7f889db71e0f29d06672 (diff) |
github: use Actions for CI (#6022)
* Update golint.yml
* Update README.md
* Update README.md
* Update golint.yml
* Update golint.yml
* Rename golint.yml to go.yml
* Update go.yml
* Update go.yml
* Update go.yml
* Improve tests on Windows
* Delete files
Diffstat (limited to 'internal')
-rw-r--r-- | internal/conf/conf_test.go | 4 | ||||
-rw-r--r-- | internal/testutil/golden.go | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/internal/conf/conf_test.go b/internal/conf/conf_test.go index 0030ea52..51ccf93c 100644 --- a/internal/conf/conf_test.go +++ b/internal/conf/conf_test.go @@ -37,10 +37,6 @@ func TestMustAsset(t *testing.T) { } func TestInit(t *testing.T) { - if IsWindowsRuntime() { - return - } - ini.PrettyFormat = false defer func() { MustInit("") diff --git a/internal/testutil/golden.go b/internal/testutil/golden.go index fa584d1b..2aaad5ce 100644 --- a/internal/testutil/golden.go +++ b/internal/testutil/golden.go @@ -9,6 +9,7 @@ import ( "flag" "io/ioutil" "regexp" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -25,8 +26,12 @@ func Update(name string) bool { } // AssertGolden compares what's got and what's in the golden file. It updates -// the golden file on-demand. +// the golden file on-demand. It does nothing when the runtime is "windows". func AssertGolden(t testing.TB, path string, update bool, got interface{}) { + if runtime.GOOS == "windows" { + return + } + t.Helper() data := marshal(t, got) |