Skip to content

Commit

Permalink
Add more
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Nov 1, 2023
1 parent eca538c commit 51aab1c
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ jobs:
options: --user root

steps:

- name: Install cypress
run: |
#ftrepo_package="https://raw.githubusercontent.com/opensearch-project/opensearch-dashboards-functional-test/${{ env.OPENSEARCH_DASHBOARDS_VERSION }}/package.json"
#echo ftrepo_package $ftrepo_package
#cypress_version=$(curl -o- $ftrepo_package | jq -r .devDependencies.cypress)
#cd ./OpenSearch-Dashboards/plugins/dashboards-notifications
#cypress_version=`jq -r .devDependencies.cypress package.json`
#echo cypress_version $cypress_version
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && npm install -g cypress@^6.0.0 && cd ~/.cache/Cypress && ls && pwd"
#cd plugins/dashboards-notifications
netstat -ntlp
exit 1
- name: Set up JDK
uses: actions/setup-java@v2
with:
Expand All @@ -69,20 +83,6 @@ jobs:
ref: ${{ env.NOTIFICATIONS_PLUGIN_VERSION }}
path: notifications

- name: Install cypress
run: |
#ftrepo_package="https://raw.githubusercontent.com/opensearch-project/opensearch-dashboards-functional-test/${{ env.OPENSEARCH_DASHBOARDS_VERSION }}/package.json"
#echo ftrepo_package $ftrepo_package
#cypress_version=$(curl -o- $ftrepo_package | jq -r .devDependencies.cypress)
cd ./OpenSearch-Dashboards/plugins/dashboards-notifications
cypress_version=`jq -r .devDependencies.cypress package.json`
echo cypress_version $cypress_version
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && npm install -g cypress@$cypress_version && cd ~/.cache/Cypress && ls && pwd"
#cd plugins/dashboards-notifications
netstat -ntlp
exit 1
- name: Run Opensearch with plugin
working-directory: ${{ env.WORKING_DIR }}
run: |
Expand Down

0 comments on commit 51aab1c

Please sign in to comment.