Skip to content

Commit e8519eb

Browse files
author
Kishore Kumaar Natarajan
committed
Updated github actions
Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
1 parent bfa60b1 commit e8519eb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/cypress-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,25 +119,27 @@ jobs:
119119
- name: Get Cypress version
120120
id: cypress_version
121121
run: |
122-
cd OpenSearch-Dashboards/plugins/query-insights-dashboards
123-
echo "::set-output name=cypress_version::$(cat ./package.json | jq '.dependencies.cypress' | tr -d '"')"
122+
version=$(jq -r '.dependencies.cypress' OpenSearch-Dashboards/plugins/query-insights-dashboards/package.json)
123+
echo "cypress_version=$version" >> $GITHUB_OUTPUT
124+
124125

125126
- name: Cache Cypress
126127
id: cache-cypress
127128
uses: actions/cache@v4
128129
with:
129130
path: ${{ matrix.cypress_cache_folder }}
130-
key: cypress-cache-${{ runner.os }}-${{ hashFiles('OpenSearch-Dashboards/plugins/query-insights-dashboards/package.json') }}
131+
key: cypress-cache-v2-${{ matrix.os }}-${{ hashFiles('OpenSearch-Dashboards/plugins/query-insights-dashboards/package.json') }}
131132
restore-keys: |
132-
cypress-cache-${{ runner.os }}-
133+
cypress-cache-v2-${{ matrix.os }}-
134+
133135
134136
# for now just chrome, use matrix to do all browsers later
135137
- name: Cypress tests
136138
uses: cypress-io/github-action@v5
137139
with:
138140
working-directory: OpenSearch-Dashboards/plugins/query-insights-dashboards
139141
command: yarn run cypress run
140-
wait-on: 'http://localhost:5601'
142+
wait-on: 'http://localhost:5601/dlw'
141143
wait-on-timeout: 600
142144
browser: chrome
143145
env:

0 commit comments

Comments
 (0)