Skip to content

Commit

Permalink
Manually backporting PR 360. (opensearch-project#361)
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
Co-authored-by: Jovan Cvetkovic <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt and jovancvetkovic3006 committed Oct 12, 2023
1 parent 2340117 commit 2272c53
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
name: Run Cypress E2E tests
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
include:
- os: windows-latest
cypress_cache_folder: ~/AppData/Local/Cypress/Cache
- os: ubuntu-latest
cypress_cache_folder: ~/.cache/Cypress
runs-on: ${{ matrix.os }}
Expand All @@ -32,6 +34,10 @@ jobs:
# TODO: Parse this from security analytics plugin (https://github.com/opensearch-project/security-analytics/issues/170)
java-version: 11

- name: Enable longer filenames
if: ${{ matrix.os == 'windows-latest' }}
run: git config --system core.longpaths true

- name: Checkout security analytics
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -87,7 +93,14 @@ jobs:
yarn start --no-base-path --no-watch &
shell: bash

- name: Sleep until OSD server starts
# Window is slow so wait longer
- name: Sleep until OSD server starts - windows
if: ${{ matrix.os == 'windows-latest' }}
run: Start-Sleep -s 400
shell: powershell

- name: Sleep until OSD server starts - non-windows
if: ${{ matrix.os != 'windows-latest' }}
run: sleep 300
shell: bash

Expand Down

0 comments on commit 2272c53

Please sign in to comment.