-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add job scheduler to observability CI
Signed-off-by: Shenoy Pratik <[email protected]>
- Loading branch information
Showing
1 changed file
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ on: [pull_request, push] | |
|
||
env: | ||
PLUGIN_NAME: dashboards-observability | ||
OPENSEARCH_DASHBOARDS_VERSION: 'main' | ||
OPENSEARCH_VERSION: '3.0.0' | ||
OPENSEARCH_PLUGIN_VERSION: '3.0.0.0' | ||
OPENSEARCH_DASHBOARDS_VERSION: "main" | ||
OPENSEARCH_VERSION: "3.0.0" | ||
OPENSEARCH_PLUGIN_VERSION: "3.0.0.0" | ||
|
||
jobs: | ||
tests: | ||
|
@@ -29,8 +29,15 @@ jobs: | |
- name: Set up Java 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '21' | ||
distribution: "corretto" | ||
java-version: "21" | ||
|
||
- name: Download Job Scheduler artifact | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-job-scheduler&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip | ||
target: plugin-artifacts/ | ||
filename: opensearch-job-scheduler.zip | ||
|
||
- name: Download observability artifact | ||
uses: suisei-cn/[email protected] | ||
|
@@ -57,6 +64,11 @@ jobs: | |
rm -f opensearch-*.tar.gz | ||
shell: bash | ||
|
||
- name: Install job scheduler plugin | ||
run: | | ||
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/opensearch-job-scheduler.zip" | ||
shell: bash | ||
|
||
- name: Install observability plugin | ||
run: | | ||
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugin-artifacts/observability.zip" | ||
|
@@ -94,7 +106,7 @@ jobs: | |
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ steps.versions_step.outputs.node_version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install correct yarn version for OpenSearch Dashboards | ||
run: | | ||
|
@@ -112,7 +124,7 @@ jobs: | |
cd OpenSearch-Dashboards | ||
nohup yarn start --no-base-path --no-watch | tee dashboard.log & | ||
- name : Check If OpenSearch Dashboards Is Ready | ||
- name: Check If OpenSearch Dashboards Is Ready | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
cd ./OpenSearch-Dashboards | ||
|
@@ -130,7 +142,7 @@ jobs: | |
repository: opensearch-project/opensearch-dashboards-functional-test | ||
ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} | ||
fetch-depth: 0 | ||
|
||
- name: Install Cypress | ||
run: | | ||
npm install cypress --save-dev | ||
|