1
1
mirror of https://github.com/nektos/act.git synced 2024-09-20 00:39:02 +03:00

Add extra test cases for testing git slugs

This commit is contained in:
Dan Sosedoff 2019-02-14 14:35:02 -06:00
parent fb77d5a883
commit 6addc48cde

View File

@ -25,6 +25,8 @@ func TestFindGitSlug(t *testing.T) {
{"git@github.com:nektos/act.git", "GitHub", "nektos/act"},
{"https://github.com/nektos/act.git", "GitHub", "nektos/act"},
{"http://github.com/nektos/act.git", "GitHub", "nektos/act"},
{"https://github.com/nektos/act", "GitHub", "nektos/act"},
{"http://github.com/nektos/act", "GitHub", "nektos/act"},
{"git+ssh://git@github.com/owner/repo.git", "GitHub", "owner/repo"},
{"http://myotherrepo.com/act.git", "", "http://myotherrepo.com/act.git"},
}