Skip to content

Commit

Permalink
Fix windows-latest cypress tests (#360)
Browse files Browse the repository at this point in the history
* [FEATURE] Detector must have at least one alert set #288

Signed-off-by: Jovan Cvetkovic <[email protected]>

* windows latest

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

* [TASK] Investigate cypress windows latest tests #351

Signed-off-by: Jovan Cvetkovic <[email protected]>

Signed-off-by: Jovan Cvetkovic <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
jovancvetkovic3006 authored and AWSHurneyt committed Jan 19, 2023
1 parent 96d09b0 commit 175c9b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 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
1 change: 0 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"viewportHeight": 900,
"viewportWidth": 1440,
"defaultCommandTimeout": 20000,
"retries": 1,
"env": {
"opensearch_url": "localhost:9200",
"opensearch_dashboards": "http://localhost:5601",
Expand Down

0 comments on commit 175c9b0

Please sign in to comment.