Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Adding plugin install workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Mar 26, 2024
1 parent 1683e2c commit 1f6f07c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ jobs:
java: [ 11, 17, 21 ]
experimental: [false]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/plugin-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Test
on: [push, pull_request, workflow_dispatch]
env:
OPENSEARCH_VERSION: 2.12.0
PLUGIN_NAME: opensearch-ubi
jobs:
plugin-install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
jdk: [11, 17, 21]
runs-on: ${{ matrix.os }}
steps:
- id: random-password
uses: peternied/random-name@v1
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
- name: Checkout Branch
uses: actions/checkout@v4
- name: Assemble target plugin
uses: gradle/gradle-build-action@v3
with:
cache-disabled: true
arguments: assemble
- name: Move and rename the plugin for installation
run: mv ./build/distributions/${{ env.PLUGIN_NAME }}-*.zip ${{ env.PLUGIN_NAME }}.zip
shell: bash
- name: Run Opensearch with a single plugin
uses: derek-ho/start-opensearch@v3
with:
opensearch-version: ${{ env.OPENSEARCH_VERSION }}
plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip"
security-enabled: true
admin-password: ${{ steps.random-password.outputs.generated_name }}
- name: Run sanity tests
uses: gradle/gradle-build-action@v3
with:
cache-disabled: true
arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=${{ steps.random-password.outputs.generated_name }} -i

0 comments on commit 1f6f07c

Please sign in to comment.