diff --git a/.github/workflows/cypress-workflow.yml b/.github/workflows/cypress-workflow.yml index da313f57d..bc680ce68 100644 --- a/.github/workflows/cypress-workflow.yml +++ b/.github/workflows/cypress-workflow.yml @@ -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 @@ -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 @@ -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