Skip to content

Commit

Permalink
set up github actions for 2.x (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Chenyang Ji <[email protected]>
  • Loading branch information
ansjcy authored Jan 13, 2025
1 parent 47383e5 commit dd80887
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_VERSION: '3.0.0-SNAPSHOT'
QUERY_INSIGHTS_BRANCH: 'main'
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
QUERY_INSIGHTS_BRANCH: '2.x'
GRADLE_VERSION: '7.6.1'
jobs:
tests:
Expand Down Expand Up @@ -53,8 +52,8 @@ jobs:
- name: Run OpenSearch with Query Insights plugin
run: |
cd query-insights
./gradlew run -Dopensearch.version=${{ env.OPENSEARCH_VERSION }} &
sleep 300
./gradlew run &
timeout 300 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9200)" != "200" ]]; do sleep 5; done'
shell: bash

- name: Checkout OpenSearch-Dashboards
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- '*'
env:
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
jobs:
tests:
name: Run lint
Expand Down
4 changes: 2 additions & 2 deletions opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "queryInsightsDashboards",
"version": "1.0.0",
"opensearchDashboardsVersion": "3.0.0",
"version": "2.19.0.0",
"opensearchDashboardsVersion": "2.19.0",
"server": true,
"ui": true,
"requiredPlugins": ["navigation"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensearch_query_insights_dashboards",
"version": "3.0.0.0",
"version": "2.19.0.0",
"description": "OpenSearch Dashboards plugin for Query Insights",
"main": "index.js",
"license": "Apache-2.0",
Expand Down

0 comments on commit dd80887

Please sign in to comment.