Skip to content

Commit 3fd42a3

Browse files
committed
chore: upload golden failures
1 parent 7532f38 commit 3fd42a3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/test-flutter.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ jobs:
1010
test:
1111
runs-on: macos-latest
1212
strategy:
13-
matrix: { dir: ['example/simple_app', 'example/multi_packages_app/app', 'example/multi_packages_app/theme'] }
13+
matrix:
14+
{
15+
dir:
16+
[
17+
"example/simple_app",
18+
"example/multi_packages_app/app",
19+
"example/multi_packages_app/theme",
20+
],
21+
}
1422
defaults:
1523
run:
1624
working-directory: ${{ matrix.dir }}
@@ -42,3 +50,11 @@ jobs:
4250

4351
- name: Run tests
4452
run: flutter test --no-pub --test-randomize-ordering-seed random
53+
54+
- name: Upload golden test failures
55+
if: failure()
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: golden-failures-${{ matrix.dir.replace('/', '__') }}
59+
path: ${{ matrix.dir }}/test/**/failures/
60+
if-no-files-found: ignore

0 commit comments

Comments
 (0)