@@ -21,12 +21,12 @@ jobs:
21
21
with :
22
22
repository : opensearch-project/Opensearch-Dashboards
23
23
ref : ${{ env.OPENSEARCH_VERSION }}
24
- path : dashboards-reports/ OpenSearch-Dashboards
24
+ path : OpenSearch-Dashboards
25
25
26
26
- name : Get node version
27
27
id : versions_step
28
28
run :
29
- echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
29
+ echo "::set-output name=node_version::$(node -p "(require('.. /OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
30
30
31
31
- name : Setup Node
32
32
uses : actions/setup-node@v1
@@ -36,13 +36,13 @@ jobs:
36
36
37
37
38
38
- name : Move Dashboards Reports to Plugins Dir
39
- run : mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
39
+ run : mv dashboards-reports ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
40
40
41
41
- name : Add Chromium Binary to Reporting for Testing
42
42
run : |
43
43
sudo apt update
44
44
sudo apt install -y libnss3-dev fonts-liberation libfontconfig1
45
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
45
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
46
46
wget https://github.com/opendistro-for-elasticsearch/kibana-reports/releases/download/chromium-1.12.0.0/chromium-linux-x64.zip
47
47
unzip chromium-linux-x64.zip
48
48
rm chromium-linux-x64.zip
@@ -52,25 +52,25 @@ jobs:
52
52
with :
53
53
timeout_minutes : 30
54
54
max_attempts : 3
55
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn osd bootstrap
55
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn osd bootstrap
56
56
57
57
- name : Test
58
58
uses : nick-invision/retry@v1
59
59
with :
60
60
timeout_minutes : 30
61
61
max_attempts : 3
62
- command : cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage
62
+ command : cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage
63
63
64
64
- name : Upload coverage
65
65
uses : codecov/codecov-action@v1
66
66
with :
67
67
flags : dashboards-reports
68
- directory : OpenSearch-Dashboards/plugins/
68
+ directory : ../ OpenSearch-Dashboards/plugins/
69
69
token : ${{ secrets.CODECOV_TOKEN }}
70
70
71
71
- name : Build Artifact
72
72
run : |
73
- cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
73
+ cd ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
74
74
yarn build
75
75
76
76
cd build
@@ -96,13 +96,13 @@ jobs:
96
96
uses : actions/upload-artifact@v1
97
97
with :
98
98
name : dashboards-reports-linux-x64
99
- path : OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
99
+ path : ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-x64.zip
100
100
101
101
- name : Upload Artifact For Linux arm64
102
102
uses : actions/upload-artifact@v1
103
103
with :
104
104
name : dashboards-reports-linux-arm64
105
- path : OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
105
+ path : ../ OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}/build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}-linux-arm64.zip
106
106
107
107
windows-build :
108
108
runs-on : windows-latest
@@ -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