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>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1164 +/- ##
==========================================
- Coverage 73.90% 72.07% -1.84%
==========================================
Files 86 88 +2
Lines 1901 1959 +58
Branches 251 258 +7
==========================================
+ Hits 1405 1412 +7
- Misses 439 490 +51
Partials 57 57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
davidlago
left a comment
There was a problem hiding this comment.
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) |
| steps: | ||
| - id: determine-dashboards-directory | ||
| run: echo "dashboards-directory=OpenSearch-Dashboards" >> $GITHUB_OUTPUT | ||
| shell: bash |
There was a problem hiding this comment.
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 |
|
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.xThen, 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.