-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: processing of strategy.matrix.include #1200
Conversation
MegaLinter status: ✅ SUCCESS
See errors details in artifact MegaLinter reports on CI Job page |
Codecov Report
@@ Coverage Diff @@
## master #1200 +/- ##
==========================================
+ Coverage 57.50% 61.98% +4.47%
==========================================
Files 32 40 +8
Lines 4594 5437 +843
==========================================
+ Hits 2642 3370 +728
- Misses 1729 1797 +68
- Partials 223 270 +47
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
case []interface{}: | ||
for _, i := range t { | ||
i := i.(map[string]interface{}) | ||
extraInclude := true | ||
for k := range i { | ||
if _, ok := m[k]; ok { | ||
includes = append(includes, i) | ||
extraInclude = false | ||
break | ||
} | ||
} | ||
if extraInclude { | ||
extraIncludes = append(extraIncludes, i) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have this case? Doesn't this allow invalid syntax.
pkg/model/workflow_test.go
Outdated
@@ -247,6 +247,7 @@ func TestReadWorkflow_Strategy(t *testing.T) { | |||
{"datacenter": "site-c", "node-version": "14.x", "site": "staging"}, | |||
{"datacenter": "site-c", "node-version": "16.x", "site": "staging"}, | |||
{"datacenter": "site-d", "node-version": "16.x", "site": "staging"}, | |||
{"php-version": 5.4}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified this Test, correct me if my expectation is wrong.
Refactored GetMatrices to more closely match my runner.server project and github actions.
Partially fixes #769
fixes #1182
resolves #1223
Known Issues, based on recent research in my related project
null == '' == 0