Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2661232
initial commit for sql workbench windows and macos
derek-ho Oct 12, 2022
7a1c7ae
name files
derek-ho Oct 12, 2022
ef535e9
clean up code with matrix
derek-ho Oct 13, 2022
8a58eb9
forgot comma
derek-ho Oct 13, 2022
828101c
use cross env for windows and enable windows and macos ci in sql
derek-ho Oct 13, 2022
53ef534
disable integration and jacoco for windows and mac
derek-ho Oct 13, 2022
7569d6d
add gitattributes file to normalize line endings
derek-ho Oct 13, 2022
912731b
move gitattributes into appropriate folder
derek-ho Oct 13, 2022
6a6cfd6
configure line endings for windows
derek-ho Oct 13, 2022
0d016ef
fix one test file and get rid of git attributes
derek-ho Oct 14, 2022
a8709d2
disable doctest and integ test
derek-ho Oct 14, 2022
d4c9f1e
fix up tests
derek-ho Oct 17, 2022
9df2acd
fix tests and add java docs
derek-ho Oct 17, 2022
8f98fa4
revert error format
derek-ho Oct 17, 2022
7a39dcb
revert pretty format response
derek-ho Oct 17, 2022
bd8572a
revert error formatter test file
derek-ho Oct 17, 2022
a2b473b
replace carriage return with nothing
derek-ho Oct 18, 2022
a3747a3
remove windows git config
derek-ho Oct 18, 2022
e70df11
fix PR comments and fail test on purpose to see if upload test report…
derek-ho Oct 19, 2022
de65184
fix matrix entry
derek-ho Oct 19, 2022
a6f3ceb
remove test failure
derek-ho Oct 19, 2022
3f372bb
fix up to run on right os
derek-ho Oct 20, 2022
5e24f3c
fix up indentation
derek-ho Oct 20, 2022
3fbe3e4
remove env. build_args to make it cleaner
derek-ho Oct 20, 2022
954c072
try removing env var
derek-ho Oct 20, 2022
79f765c
remove unecessary import
derek-ho Oct 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 101 additions & 2 deletions .github/workflows/sql-workbench-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
OPENSEARCH_PLUGIN_VERSION: 2.4.0.0

jobs:
build:
linux-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Plugin
Expand Down Expand Up @@ -68,5 +68,104 @@ jobs:
if: always()
uses: actions/upload-artifact@v1 # can't update to v3 because upload fails
with:
name: workbench
name: workbench-linux
path: ../OpenSearch-Dashboards/plugins/workbench/build

windows-build:
runs-on: windows-latest
steps:
- name: Checkout Plugin
uses: actions/checkout@v3
# Enable longer filenames for windows
- name: Enable longer filenames
run: git config --system core.longpaths true

- name: Checkout OpenSearch Dashboards
uses: actions/checkout@v1 # can't update to v3 because `setup-node` fails
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
path: OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: "../OpenSearch-Dashboards/.nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Move Workbench to Plugins Dir
run: |
mv workbench ../OpenSearch-Dashboards/plugins

- name: OpenSearch Dashboards Plugin Bootstrap
uses: nick-fields/retry@v2
with:
timeout_minutes: 60
max_attempts: 3
command: cd ../OpenSearch-Dashboards/plugins/workbench; yarn osd bootstrap

- name: Test
run: |
cd ../OpenSearch-Dashboards/plugins/workbench
yarn test:jest

- name: Build Artifact
run: |
cd ../OpenSearch-Dashboards/plugins/workbench
yarn build
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip

- name: Upload Artifact
if: always()
uses: actions/upload-artifact@v1 # can't update to v3 because upload fails
with:
name: workbench-windows
path: ../OpenSearch-Dashboards/plugins/workbench/build

macos-build:
runs-on: macos-latest
steps:
- name: Checkout Plugin
uses: actions/checkout@v3

- name: Checkout OpenSearch Dashboards
uses: actions/checkout@v1 # can't update to v3 because `setup-node` fails
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
path: OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: "../OpenSearch-Dashboards/.nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Move Workbench to Plugins Dir
run: |
mv workbench ../OpenSearch-Dashboards/plugins

- name: OpenSearch Dashboards Plugin Bootstrap
uses: nick-fields/retry@v2
with:
timeout_minutes: 60
max_attempts: 3
command: cd ../OpenSearch-Dashboards/plugins/workbench; yarn osd bootstrap

- name: Test
run: |
cd ../OpenSearch-Dashboards/plugins/workbench
yarn test:jest

- name: Build Artifact
run: |
cd ../OpenSearch-Dashboards/plugins/workbench
yarn build
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip

- name: Upload Artifact
if: always()
uses: actions/upload-artifact@v1 # can't update to v3 because upload fails
with:
name: workbench-macos
path: ../OpenSearch-Dashboards/plugins/workbench/build
Comment thread
Yury-Fridlyand marked this conversation as resolved.
Outdated