-
Notifications
You must be signed in to change notification settings - Fork 141
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
Remove explicit node version for workbench #588
Remove explicit node version for workbench #588
Conversation
Signed-off-by: Joshua Li <[email protected]>
run: | | ||
echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")" | ||
echo "::set-output name=yarn_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")" | ||
|
||
- name: Setup Node |
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.
Can you use the Dashboards .nvmrc
file? Similar to what we do in Dashboards: https://github.com/tmarkley/OpenSearch-Dashboards/blob/c67b31e732995207ae432f24b393c902ec326b96/.github/workflows/build_and_test_workflow.yml#L32-L36
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.
sure, updated
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
with: | ||
node-version: '14.18.2' | ||
node-version-file: ".nvmrc" |
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 think you have to point to the OpenSearch Dashboards directory to get this to work.
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.
You beat me to it :)
Codecov Report
@@ Coverage Diff @@
## main #588 +/- ##
=========================================
Coverage 94.59% 94.59%
Complexity 2743 2743
=========================================
Files 276 276
Lines 7455 7455
Branches 551 551
=========================================
Hits 7052 7052
Misses 349 349
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit a7d4395)
Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit a7d4395) Co-authored-by: Joshua Li <[email protected]>
…h-project#704. Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix java installation for SQL plugin workflow; * Backport workbench CI fixes from opensearch-project#588 and opensearch-project#704. Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Joshua Li [email protected]
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.