1
-
2
1
name : Test and Build Observability Dashboards Plugin
3
2
4
3
on : [pull_request, push]
5
4
6
5
env :
7
6
PLUGIN_NAME : dashboards-observability
8
- OPENSEARCH_VERSION : ' main'
9
- OPENSEARCH_PLUGIN_VERSION : 3.0.0.0
7
+ OPENSEARCH_DASHBOARDS_VERSION : ' main'
8
+ OPENSEARCH_PLUGIN_VERSION : ' 3.0.0.0-alpha1 '
10
9
11
10
jobs :
12
11
Get-CI-Image-Tag :
16
15
17
16
build-linux :
18
17
needs : Get-CI-Image-Tag
19
- strategy :
18
+ strategy :
20
19
fail-fast : false
21
20
runs-on : ubuntu-latest
22
21
container :
31
30
uses : actions/checkout@v2
32
31
with :
33
32
repository : opensearch-project/OpenSearch-Dashboards
34
- ref : ${{ env.OPENSEARCH_VERSION }}
33
+ ref : ${{ env.OPENSEARCH_DASHBOARDS_VERSION }}
35
34
path : OpenSearch-Dashboards
36
35
37
36
- name : Checkout Dashboards Observability
@@ -53,11 +52,11 @@ jobs:
53
52
54
53
- name : Test all dashboards-observability modules
55
54
run : |
56
- chown -R 1000:1000 `pwd`
57
- cd ./OpenSearch-Dashboards/
58
- su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
59
- cd plugins/dashboards-observability &&
60
- yarn osd bootstrap --single-version=loose && yarn test --coverage --maxWorkers=100%"
55
+ chown -R 1000:1000 `pwd`
56
+ cd ./OpenSearch-Dashboards/
57
+ su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
58
+ cd plugins/dashboards-observability &&
59
+ yarn osd bootstrap --single-version=loose && yarn test --coverage --maxWorkers=100%"
61
60
62
61
- name : Upload coverage
63
62
uses : codecov/codecov-action@v1
@@ -68,11 +67,11 @@ jobs:
68
67
69
68
- name : Build Artifact
70
69
run : |
71
- chown -R 1000:1000 `pwd`
72
- cd ./OpenSearch-Dashboards/
73
- su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
74
- cd plugins/dashboards-observability &&
75
- yarn build && mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip"
70
+ chown -R 1000:1000 `pwd`
71
+ cd ./OpenSearch-Dashboards/
72
+ su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v &&
73
+ cd plugins/dashboards-observability &&
74
+ yarn build && mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip"
76
75
77
76
- name : Upload Artifact
78
77
uses : actions/upload-artifact@v4
81
80
path : ./OpenSearch-Dashboards/plugins/dashboards-observability/build
82
81
83
82
build-windows-macos :
84
- strategy :
83
+ strategy :
85
84
matrix :
86
85
os : [windows-latest, macos-latest]
87
86
# Since Windows is inconsistent, we want to let other OSes run on a fail
0 commit comments