-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Refactor evaluate yaml node do not alter nested nodes #1761
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
Merged
mergify
merged 8 commits into
master
from
refactor-EvaluateYamlNode-do-not-alter-nested-nodes
May 3, 2023
Merged
Refactor evaluate yaml node do not alter nested nodes #1761
mergify
merged 8 commits into
master
from
refactor-EvaluateYamlNode-do-not-alter-nested-nodes
May 3, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #1761 +/- ##
==========================================
+ Coverage 61.22% 62.42% +1.20%
==========================================
Files 46 51 +5
Lines 7141 8131 +990
==========================================
+ Hits 4372 5076 +704
- Misses 2462 2667 +205
- Partials 307 388 +81
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
KnisterPeter
approved these changes
May 3, 2023
cplee
approved these changes
May 3, 2023
@ChristopherHX this pull request has failed checks 🛠 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using EvaluateYamlNode for evaluating job properties of matrix jobs has been problematic, it altered the nested yaml.Node structures in place.
EvaluateYamlNode now clones the modified yaml.Node to preserve the original yaml structure for evaluation in another yaml node.
To make it possible to implement the following, which works in GitHub Actions. This is allowed via the official GitHub Actions schema file: https://github.com/actions/languageservices/blob/main/workflow-parser/src/workflow-v1.0.json. This file is much newer than the one of actions/runner.