Skip to content

Commit

Permalink
Use version from package.json for integration tests (#1466)
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Jun 2, 2023
1 parent c1fc06d commit 7dece6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ on: [push, pull_request]
env:
TEST_BROWSER_HEADLESS: 1
CI: 1
OPENSEARCH_VERSION: 1.3.9
PLUGIN_NAME: opensearch-security
PLUGIN_VERSION: 1.3.9.0

jobs:
tests:
Expand All @@ -27,6 +25,14 @@ jobs:
with:
java-version: 11

- name: Set env
run: |
opensearch_version=$(node -p "require('./package.json').opensearchDashboards.version")
plugin_version=$(node -p "require('./package.json').version")
echo "OPENSEARCH_VERSION=$opensearch_version" >> $GITHUB_ENV
echo "PLUGIN_VERSION=$plugin_version" >> $GITHUB_ENV
shell: bash

- uses: browser-actions/setup-geckodriver@v0.0.0
- run: geckodriver --version

Expand Down

0 comments on commit 7dece6b

Please sign in to comment.