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

feat(remote): add tests for git remote taskfiles #1894

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pbitty
Copy link
Contributor

@pbitty pbitty commented Oct 29, 2024

This uses a similar approach as the HTTP remote taskfile tests,
leveraging the git tool's built-in support for hosting a local HTTP
server via CGI.

I was inspired by the HTTP tests and realized the same thing could work for git.

This uses a similar approach as the HTTP remote taskfile tests,
leveraging the `git` tool's built-in support for hosting a local HTTP
server via CGI.
Comment on lines +1094 to +1096
if !gitSupported {
t.Log("git tests not supported and will be skipped")
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this as a guard for now, but I would expect pretty much every CI and dev environment will have git installed. If you all agree, I will remove this guard to reduce noise in the code.

@pbitty
Copy link
Contributor Author

pbitty commented Oct 29, 2024

I'm going to mark this as draft while I sort out the CI issues. I need to find the right git ref to use.

@pbitty pbitty marked this pull request as draft October 29, 2024 22:52
@pbitty pbitty marked this pull request as ready for review October 29, 2024 22:57
@pbitty
Copy link
Contributor Author

pbitty commented Oct 30, 2024

Ok, fixed now.

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.

1 participant