-
Notifications
You must be signed in to change notification settings - Fork 162
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
Support CI for Windows and MacOS #1164
Conversation
Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe. Signed-off-by: Peter Nied <petern@amazon.com>
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.
Nice refactoring, thanks for taking care of this
@peternied Looks like we have to modify the required checks similar to what @cliu123 did for this PR: opensearch-project/security#2161 (comment) |
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.
Great work @peternied!
steps: | ||
- id: determine-dashboards-directory | ||
run: echo "dashboards-directory=OpenSearch-Dashboards" >> $GITHUB_OUTPUT | ||
shell: bash |
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.
Looks like bash
is available on all platforms according to this: https://dev.to/pwd9000/github-actions-all-the-shells-581h
Nice use of a composite action! 🙌
- uses: actions/checkout@v2 | ||
|
||
- id: install-dashboards | ||
uses: ./.github/actions/install-dashboards |
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.
+1 for re-usability!
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-1164-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a21c7be155c082ede6bb24b9a691805ff1431f03
# Push it to GitHub
git push --set-upstream origin backport/backport-1164-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
FYI The backport to 2.x #1167 |
Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe. Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a21c7be)
* Support CI for Windows and MacOS (#1164) Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe. Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a21c7be) * Support checkout out #.X branch types Signed-off-by: Peter Nied <petern@amazon.com>
* Support CI for Windows and MacOS (#1164) Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe. Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a21c7be) * Support checkout out #.X branch types Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a8278c1)
* Support CI for Windows and MacOS (#1164) Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe. Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a21c7be) * Support checkout out #.X branch types Signed-off-by: Peter Nied <petern@amazon.com> (cherry picked from commit a8278c1) Co-authored-by: Peter Nied <petern@amazon.com>
Description
Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.
Issues Resolved
Note: follow up pull request will convert the integration test job to be multi-platform
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.