Skip to content

Commit

Permalink
reverted cypress workflow change
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Oct 4, 2023
1 parent b9a839c commit 7cff4a7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
SECURITY_ANALYTICS_BRANCH: '2.11'
SECURITY_ANALYTICS_BRANCH: '2.x'
jobs:
tests:
name: Run Cypress E2E tests
Expand Down Expand Up @@ -115,14 +115,14 @@ jobs:
cd OpenSearch-Dashboards/plugins/security-analytics-dashboards-plugin
echo "::set-output name=cypress_version::$(cat ./package.json | jq '.dependencies.cypress' | tr -d '"')"
# - name: Cache Cypress
# id: cache-cypress
# uses: actions/cache@v2
# with:
# path: ${{ matrix.cypress_cache_folder }}
# key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
# restore-keys: |
# cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
- name: Cache Cypress
id: cache-cypress
uses: actions/cache@v2
with:
path: ${{ matrix.cypress_cache_folder }}
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
restore-keys: |
cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
# for now just chrome, use matrix to do all browsers later
- name: Cypress tests
Expand All @@ -132,9 +132,9 @@ jobs:
command: yarn run cypress run
wait-on: 'http://localhost:5601'
wait-on-timeout: 300
# browser: chrome
# env:
# CYPRESS_CACHE_FOLDER: ${{ matrix.cypress_cache_folder }}
browser: chrome
env:
CYPRESS_CACHE_FOLDER: ${{ matrix.cypress_cache_folder }}

# Screenshots are only captured on failure, will change this once we do visual regression tests
- uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 7cff4a7

Please sign in to comment.