-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add platform test workflow #45
Conversation
Codecov Report
@@ Coverage Diff @@
## main #45 +/- ##
=======================================
Coverage 84.40% 84.40%
=======================================
Files 10 10
Lines 295 295
=======================================
Hits 249 249
Misses 33 33
Partials 13 13 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Windows... |
1 similar comment
Windows... |
cmd/remove_test.go
Outdated
tmpFile, e = os.CreateTemp(t.TempDir(), strings.ReplaceAll(t.Name(), "/", "")) | ||
} else { | ||
// See https://github.com/golang/go/issues/51442 | ||
tmpFile, err = os.CreateTemp(os.TempDir(), strings.ReplaceAll(t.Name(), "/", "")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
SA4006: this value of err
is never used (staticcheck)
Windows, I haven't seen your face for ten years and I almost forgot about you. |
\( 'ω')/ウオオオオオアアアーーーッ! |
gup command may check standard output and standard errors in unit tests.
We know that error messages vary from platform to platform and that tests fail in some environments.
gup command returns an error message that is a concatenation of the "message executed for the gup command" and the "message returned by the golang standard package". Error messages returned by Golang's standard packages are platform-dependent.
To solve this problem I will add the github actions workflow(#44) to test on windows, mac and linux.