Skip to content

Commit 558dffe

Browse files
committed
test
Signed-off-by: Kaituo Li <kaituo@amazon.com>
1 parent 0a748c7 commit 558dffe

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/remote-integ-tests-workflow.yml

+23-15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222

2323
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+
2446
- name: Set up JDK
2547
uses: actions/setup-java@v1
2648
with:
@@ -139,23 +161,9 @@ jobs:
139161
echo "::set-output name=cypress_version::$(cat ./package.json | jq '.dependencies.cypress' | tr -d '"')"
140162
working-directory: opensearch-dashboards-functional-test
141163

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-
156164
- name: Run spec files from output
157165
run: |
158-
IFS="," read -a myarray <<< ${{ steps.finding-files.outputs.FILELIST }}
166+
IFS=$'\n' read -r -d '' -a myarray <<< "${{ steps.finding-files.outputs.FILELIST }}"
159167
for i in "${myarray[@]}"; do
160168
yarn cypress:run-without-security --browser electron --spec "${i}"
161169
sleep 60

0 commit comments

Comments
 (0)