-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: do not replace '.' in floating point numbers #904
Conversation
Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
Codecov Report
@@ Coverage Diff @@
## master #904 +/- ##
==========================================
+ Coverage 49.27% 56.45% +7.17%
==========================================
Files 23 25 +2
Lines 2401 3961 +1560
==========================================
+ Hits 1183 2236 +1053
- Misses 1090 1525 +435
- Partials 128 200 +72
Continue to review full report at Codecov.
|
FYI Such a fix is included in https://github.com/nektos/act/pull/792/files#diff-1b1bd72cb2c57bae52ca138d34eafb6521db6556f94db086dfb2b6efdb83613b and much more. I supended this and let it to be closed, because I was to lazy to test it and merge it into my fork. However I come to the conclusion it would be better to translate the c# interpreter to golang instead of using the otto engine and hacking javascript to match github. The official interpreter is here https://github.com/actions/runner/tree/main/src/Sdk/DTExpressions2/Expressions2. I use it in my own local c# github actions runner, it works a lot of better than the act equivalent. |
@ChristopherHX we've found more issues with the current otto expression parser and were looking for a different way. |
Btw, that actionlint package has a few other goodies which would make great additions to act |
I'm aware of actionlint but it's not something I looked into for various reasons. |
Actionslint seems to have a far more conforming parser than act and haven't found any problem during my first test. @ZauberNerd |
Closing this in favor of: #908 |
No description provided.