@@ -119,12 +119,12 @@ jobs:
119
119
with :
120
120
repository : opensearch-project/Opensearch-Dashboards
121
121
ref : ${{ env.OPENSEARCH_VERSION }}
122
- path : dashboards-reports/ OpenSearch-Dashboards
122
+ path : OpenSearch-Dashboards
123
123
124
124
- name : Get node version
125
125
id : versions_step
126
126
run :
127
- echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
127
+ echo "::set-output name=node_version::$(node -p "(require('.. /OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
128
128
129
129
- name : Setup Node
130
130
uses : actions/setup-node@v1
@@ -134,11 +134,11 @@ jobs:
134
134
135
135
136
136
- name : Move Dashboards Reports to Plugins Dir
137
- run : mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
137
+ run : mv dashboards-reports ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
138
138
139
139
- name : Add Chromium Binary to Reporting for Testing
140
140
run : |
141
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
141
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
142
142
curl.exe -LO https://github.com/opensearch-project/dashboards-reports/releases/download/chromium-1.12.0.0/chromium-windows-x64.zip
143
143
Expand-Archive -Path 'chromium-windows-x64.zip'
144
144
Move-Item -Path "./chromium-windows-x64/.chromium" -Destination "./.chromium"
@@ -150,18 +150,18 @@ jobs:
150
150
with :
151
151
timeout_minutes : 30
152
152
max_attempts : 3
153
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} && yarn osd bootstrap
153
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} && yarn osd bootstrap
154
154
155
155
- name : Test
156
156
uses : nick-invision/retry@v1
157
157
with :
158
158
timeout_minutes : 30
159
159
max_attempts : 3
160
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} && yarn test
160
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} && yarn test
161
161
162
162
- name : Build Artifact
163
163
run : |
164
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
164
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
165
165
yarn build
166
166
167
167
cd build
@@ -182,7 +182,7 @@ jobs:
182
182
uses : actions/upload-artifact@v1
183
183
with :
184
184
name : dashboards-reports-windows-x64
185
- path : OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
185
+ path : ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-windows-x64.zip
186
186
187
187
macos-build :
188
188
runs-on : macos-latest
@@ -195,12 +195,12 @@ jobs:
195
195
with :
196
196
repository : opensearch-project/Opensearch-Dashboards
197
197
ref : ${{ env.OPENSEARCH_VERSION }}
198
- path : dashboards-reports/ OpenSearch-Dashboards
198
+ path : OpenSearch-Dashboards
199
199
200
200
- name : Get node version
201
201
id : versions_step
202
202
run :
203
- echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
203
+ echo "::set-output name=node_version::$(node -p "(require('.. /OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
204
204
205
205
- name : Setup Node
206
206
uses : actions/setup-node@v1
@@ -210,11 +210,11 @@ jobs:
210
210
211
211
212
212
- name : Move Dashboards Reports to Plugins Dir
213
- run : mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
213
+ run : mv dashboards-reports ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
214
214
215
215
- name : Add Chromium Binary to Reporting for Testing
216
216
run : |
217
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
217
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
218
218
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-macos-x64.zip
219
219
unzip chromium-macos-x64.zip
220
220
rm chromium-macos-x64.zip
@@ -224,18 +224,18 @@ jobs:
224
224
with :
225
225
timeout_minutes : 30
226
226
max_attempts : 3
227
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn osd bootstrap
227
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn osd bootstrap
228
228
229
229
- name : Test
230
230
uses : nick-invision/retry@v1
231
231
with :
232
232
timeout_minutes : 30
233
233
max_attempts : 3
234
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test
234
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test
235
235
236
236
- name : Build Artifact
237
237
run : |
238
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
238
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
239
239
yarn build
240
240
241
241
cd build
@@ -253,4 +253,4 @@ jobs:
253
253
uses : actions/upload-artifact@v1
254
254
with :
255
255
name : dashboards-reports-macosx-x64
256
- path : OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-macos-x64.zip
256
+ path : ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-macos-x64.zip
0 commit comments