File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -119,25 +119,27 @@ jobs:
119
119
- name : Get Cypress version
120
120
id : cypress_version
121
121
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
+
124
125
125
126
- name : Cache Cypress
126
127
id : cache-cypress
127
128
uses : actions/cache@v4
128
129
with :
129
130
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') }}
131
132
restore-keys : |
132
- cypress-cache-${{ runner.os }}-
133
+ cypress-cache-v2-${{ matrix.os }}-
134
+
133
135
134
136
# for now just chrome, use matrix to do all browsers later
135
137
- name : Cypress tests
136
138
uses : cypress-io/github-action@v5
137
139
with :
138
140
working-directory : OpenSearch-Dashboards/plugins/query-insights-dashboards
139
141
command : yarn run cypress run
140
- wait-on : ' http://localhost:5601'
142
+ wait-on : ' http://localhost:5601/dlw '
141
143
wait-on-timeout : 600
142
144
browser : chrome
143
145
env :
You can’t perform that action at this time.
0 commit comments