-
Notifications
You must be signed in to change notification settings - Fork 107
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
My tests fail with GitHub Actions: mocks seem to be ignored 🤷 #98
Comments
I did some debugging, I now understand that this is a test environment issue. The
See https://github.com/cli/go-gh/blob/c41a1271d97cf42ba0dcf94289da729cdb1554eb/gh.go#L59 Therefore, I close this issue. PS: tests succeed locally because I have configured the GitHub CLI authentication:
Which is used by the GitHub REST Client:
|
For info, here is my environment fix: See the documentation: https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows. 📖 |
* Parallelize adding/removing issues and add tests Introduces tests using `gock` since cli/cli and cli/go-gh are deprecating their `httpmocks` in favor of `gock`. * Resolve auth error with mocks Thanks to h2non/gock#98
I cannot make tests pass in GitHub Actions for this pull request (see this comment): mocks seem OK (tests pass locally) but fail in GitHub Actions.
Any hint/tips? 😊
The text was updated successfully, but these errors were encountered: