Skip to content

Commit

Permalink
Change the cypress test script to support both linux and windows runners
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Jan 6, 2023
1 parent 4856df3 commit 0765146
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,20 @@ jobs:
working-directory: ${{ steps.install-dashboards.outputs.dashboards-directory }}

- name: Run integration tests on Linux
if: ${{ runner.os == 'Linux' }}
#if: ${{ runner.os == 'Linux' }}
run: |
echo "check if opensearch is ready"
curl -XGET https://localhost:9200 -u 'admin:admin' -k
yarn test:jest_server --coverage
working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }}

- name: Run integration tests on Windows
if: ${{ runner.os == 'Windows' }}
run: |
echo "check if opensearch is ready"
curl -XGET https://localhost:9200 -u 'admin:admin' -k
Start-Process yarn -ArgumentList 'pretest:jest_server'
node .\test\run_jest_tests.js --config .\test\jest.config.server.js
working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }}
#- name: Run integration tests on Windows
# if: ${{ runner.os == 'Windows' }}
# run: |
# echo "check if opensearch is ready"
# curl -XGET https://localhost:9200 -u 'admin:admin' -k
# Start-Process yarn -ArgumentList 'pretest:jest_server'
# node .\test\run_jest_tests.js --config .\test\jest.config.server.js
# working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }}
#node .\test\jest_integration\runIdpServer.js &
#node .\test\run_jest_tests.js --config .\test\jest.config.server.js

0 comments on commit 0765146

Please sign in to comment.