forked from opendistro-for-elasticsearch/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.25 KB
/
sql-workbench-test-and-build-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: SQL Workbench Test and Build
on: [pull_request, push]
env:
PLUGIN_NAME: opendistroQueryWorkbenchKibana
OD_VERSION: 1.12.0.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Plugin
uses: actions/checkout@v1
- name: Checkout Kibana
uses: actions/checkout@v1
with:
repository: elastic/kibana
ref: v7.10.0
path: sql/kibana
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.22.1'
- name: Move Workbench to Plugins Dir
run: |
mv workbench kibana/plugins
- name: Kibana Plugin Bootstrap
uses: nick-invision/retry@v1
with:
timeout_minutes: 60
max_attempts: 3
command: cd kibana/plugins/workbench; yarn kbn bootstrap
- name: Test
run: |
cd kibana/plugins/workbench
yarn test:jest
- name: Build Artifact
run: |
cd kibana/plugins/workbench
yarn build
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OD_VERSION }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: workbench
path: kibana/plugins/workbench/build