Fix travis and github actions ci tests calc. (#14)

This commit is contained in:
Abhishek Arya 2020-10-16 10:47:28 -07:00 committed by GitHub
parent b72091168d
commit 50e39b55b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ func isTest(s string) bool {
l := strings.ToLower(s)
// Add more patterns here!
for _, pattern := range []string{"travis-ci", "buildkite", "e2e", "test", "mergeable", "appveyor"} {
for _, pattern := range []string{"appveyor", "buildkite", "e2e", "github-actions", "mergeable", "test", "travis-ci"} {
if strings.Contains(l, pattern) {
return true
}
@ -85,7 +85,8 @@ func GithubCheckRuns(c checker.Checker) checker.CheckResult {
if cr.GetConclusion() != "success" {
continue
}
if isTest(cr.GetName()) {
if isTest(cr.GetApp().GetSlug()) {
c.Logf("CI test found: %s", cr.GetApp().GetSlug())
totalTested++
break
}