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 d0ea270 commit 1443e4c
Showing 1 changed file with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@ 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 18 && node -v && yarn -v && npm install -g cypress@^6.0.0 && cypress --version && cd ~/.cache/Cypress && ls && pwd"
#cd plugins/dashboards-notifications
netstat -ntlp
exit 1
- name: Set up JDK
uses: actions/setup-java@v2
with:
Expand Down Expand Up @@ -148,12 +134,27 @@ jobs:
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"
source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && npm install -g cypress@$cypress_version
su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && npm install -g cypress@$cypress_version"
#source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && npm install -g cypress@$cypress_version
ls -l ~/.cache/Cypress
#cd plugins/dashboards-notifications
netstat -ntlp
yarn run cypress run
cypress --version
# - name: Install Cypress
# run: |
# cd ./OpenSearch-Dashboards/plugins/dashboards-notifications
# # This will install Cypress in case the binary is missing which can happen on Windows and Mac
# # If the binary exists, this will exit quickly so it should not be an expensive operation
# su `id -un 1000` -c "npx cypress install"
# shell: bash
#
# - name: Cache Cypress
# id: cache-cypress
# uses: actions/cache@v2
# with:
# path: ${{ matrix.cypress_cache_folder }}
# key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('OpenSearch-Dashboards/plugins/dashboards-notifications/package.json') }}

#- name: Run Cypress tests
# uses: cypress-io/github-action@v2
Expand Down

0 comments on commit 1443e4c

Please sign in to comment.