Skip to content
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

Merged
merged 28 commits into from
Sep 18, 2022
Merged

Add platform test workflow #45

merged 28 commits into from
Sep 18, 2022

Conversation

nao1215
Copy link
Owner

@nao1215 nao1215 commented Sep 18, 2022

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.

@codecov
Copy link

codecov bot commented Sep 18, 2022

Codecov Report

Merging #45 (0f5ae37) into main (260a2de) will not change coverage.
The diff coverage is n/a.

@@           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

@nao1215
Copy link
Owner Author

nao1215 commented Sep 18, 2022

Windows...

1 similar comment
@KEINOS
Copy link
Contributor

KEINOS commented Sep 18, 2022

Windows...

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(), "/", ""))
Copy link
Contributor

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)

@nao1215
Copy link
Owner Author

nao1215 commented Sep 18, 2022

Windows, I haven't seen your face for ten years and I almost forgot about you.
However, I will remember you for the next ten years as well. I can't believe you failed so many unit tests.

@nao1215
Copy link
Owner Author

nao1215 commented Sep 18, 2022

\( 'ω')/ウオオオオオアアアーーーッ!

@nao1215 nao1215 merged commit 2672d84 into main Sep 18, 2022
@nao1215 nao1215 deleted the add-platform-unit-test-workflow branch September 18, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants