Skip to content

Commit e871ebf

Browse files
AMoo-MikiMiki
authored andcommitted
[CI] Record functional test artifacts in case of failure
Signed-off-by: Miki <miki@amazon.com>
1 parent 7584969 commit e871ebf

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/build_and_test_workflow.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223
108108
# Increase network timeout for Windows, retry once if bootstrap fails
109109
- name: Run bootstrap
110-
run: |
110+
run: |
111111
yarn cache clean
112112
yarn config set network-timeout 1000000 -g
113113
yarn osd bootstrap || yarn osd bootstrap
@@ -183,6 +183,14 @@ jobs:
183183
JOB: ci${{ matrix.group }}
184184
CACHE_DIR: ciGroup${{ matrix.group }}
185185

186+
- uses: actions/upload-artifact@v3
187+
if: failure()
188+
with:
189+
name: failure-artifacts
190+
path: |
191+
test/*/failure_debug/
192+
test/*/screenshots/
193+
186194
functional-tests-windows:
187195
runs-on: windows-latest
188196
name: Run functional tests on Windows
@@ -222,7 +230,7 @@ jobs:
222230
# https://github.com/yarnpkg/yarn/issues/8242#issuecomment-776561223
223231
# Increase network timeout for Windows, retry once if bootstrap fails
224232
- name: Run bootstrap
225-
run: |
233+
run: |
226234
yarn cache clean
227235
yarn config set network-timeout 1000000 -g
228236
yarn osd bootstrap || yarn osd bootstrap
@@ -239,6 +247,14 @@ jobs:
239247
JOB: ci${{ matrix.group }}
240248
CACHE_DIR: ciGroup${{ matrix.group }}
241249

250+
- uses: actions/upload-artifact@v3
251+
if: failure()
252+
with:
253+
name: failure-artifacts-ci${{ matrix.group }}
254+
path: |
255+
test/*/failure_debug/
256+
test/*/screenshots/
257+
242258
build-min-artifact-tests-linux:
243259
runs-on: ubuntu-latest
244260
container:

0 commit comments

Comments
 (0)