feat: add UI trigger for query progress #38
Workflow file for this run
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
name: Test Query Enhancements | |
on: [pull_request, push] | |
env: | |
PLUGIN_NAME: dashboards-query-enhancements | |
OPENSEARCH_VERSION: 'main' | |
jobs: | |
Get-CI-Image-Tag: | |
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main | |
with: | |
product: opensearch-dashboards | |
build-linux: | |
needs: Get-CI-Image-Tag | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
container: | |
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution | |
# this image tag is subject to change as more dependencies and updates will arrive over time | |
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} | |
# need to switch to root so that github actions can install runner binary on container without permission issues. | |
options: --user root | |
steps: | |
- name: Checkout OpenSearch Dashboards | |
uses: actions/checkout@v2 | |
with: | |
repository: opensearch-project/OpenSearch-Dashboards | |
ref: ${{ env.OPENSEARCH_VERSION }} | |
path: OpenSearch-Dashboards | |
- name: Checkout Query Enhancements | |
uses: actions/checkout@v2 | |
with: | |
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} | |
- name: Plugin Bootstrap | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 20 | |
max_attempts: 2 | |
command: | | |
chown -R 1000:1000 `pwd` | |
cd ./OpenSearch-Dashboards/ | |
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && | |
yarn config set network-timeout 1000000 -g && | |
yarn osd bootstrap --single-version=loose" | |
- name: Test all query enhancements modules | |
run: | | |
chown -R 1000:1000 `pwd` | |
cd ./OpenSearch-Dashboards/ | |
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && | |
cd plugins/${{ env.PLUGIN_NAME }} && | |
yarn osd bootstrap --single-version=loose && yarn test --maxWorkers=100%" |