|
21 | 21 | runs-on: ${{ matrix.os }}
|
22 | 22 |
|
23 | 23 | steps:
|
| 24 | + - name: Checkout Dashboards Functional Test Repo |
| 25 | + uses: actions/checkout@v2 |
| 26 | + with: |
| 27 | + path: opensearch-dashboards-functional-test |
| 28 | + repository: opensearch-project/opensearch-dashboards-functional-test |
| 29 | + ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} |
| 30 | + fetch-depth: 0 |
| 31 | + |
| 32 | + - name: Finding spec files and store to output |
| 33 | + id: finding-files |
| 34 | + run: | |
| 35 | + echo "::set-output name=FILELIST::$(find cypress/integration/plugins/anomaly-detection-dashboards-plugin -name '*.js' -print)" |
| 36 | + working-directory: opensearch-dashboards-functional-test |
| 37 | + |
| 38 | + - name: Print spec files from output |
| 39 | + run: | |
| 40 | + IFS=$'\n' read -r -d '' -a myarray <<< "${{ steps.finding-files.outputs.FILELIST }}" |
| 41 | + for i in "${myarray[@]}"; do |
| 42 | + echo "${i}" |
| 43 | + done |
| 44 | + working-directory: opensearch-dashboards-functional-test |
| 45 | + |
24 | 46 | - name: Set up JDK
|
25 | 47 | uses: actions/setup-java@v1
|
26 | 48 | with:
|
@@ -139,23 +161,9 @@ jobs:
|
139 | 161 | echo "::set-output name=cypress_version::$(cat ./package.json | jq '.dependencies.cypress' | tr -d '"')"
|
140 | 162 | working-directory: opensearch-dashboards-functional-test
|
141 | 163 |
|
142 |
| - - name: Finding spec files and store to output |
143 |
| - id: finding-files |
144 |
| - run: | |
145 |
| - echo "::set-output name=FILELIST::$(find cypress/integration/plugins/anomaly-detection-dashboards-plugin -name '*.js' -print)" |
146 |
| - working-directory: opensearch-dashboards-functional-test |
147 |
| - |
148 |
| - - name: Print spec files from output |
149 |
| - run: | |
150 |
| - IFS="," read -a myarray <<< ${{ steps.finding-files.outputs.FILELIST }} |
151 |
| - for i in "${myarray[@]}"; do |
152 |
| - echo "${i}" |
153 |
| - done |
154 |
| - working-directory: opensearch-dashboards-functional-test |
155 |
| - |
156 | 164 | - name: Run spec files from output
|
157 | 165 | run: |
|
158 |
| - IFS="," read -a myarray <<< ${{ steps.finding-files.outputs.FILELIST }} |
| 166 | + IFS=$'\n' read -r -d '' -a myarray <<< "${{ steps.finding-files.outputs.FILELIST }}" |
159 | 167 | for i in "${myarray[@]}"; do
|
160 | 168 | yarn cypress:run-without-security --browser electron --spec "${i}"
|
161 | 169 | sleep 60
|
|
0 commit comments