mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
stub iap for goldens workflow
This commit is contained in:
parent
1b0443a588
commit
cd09efeb05
1 changed files with 8 additions and 3 deletions
11
.github/workflows/run_golden_tests.yml
vendored
11
.github/workflows/run_golden_tests.yml
vendored
|
@ -23,6 +23,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Override iap package with stub
|
||||||
|
id: override-iap
|
||||||
|
run: bash ./.github/scripts/stub_iap.sh
|
||||||
|
|
||||||
|
- name: Restore constants.dart
|
||||||
|
run: bash .github/scripts/restore_from_base64.sh "${{ secrets.CONSTANTS }}" "lib/constants.dart"
|
||||||
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
|
@ -40,9 +47,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
goldens=$(find ./test -name "*_golden_test.dart" -print)
|
goldens=$(find ./test -name "*_golden_test.dart" -print)
|
||||||
for f in $goldens; do
|
for f in $goldens; do
|
||||||
flutter test "$f"\
|
flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg $UPDATE_GOLDENS
|
||||||
--dart-define cameraStubImage=assets/camera_stub_image.jpg \
|
|
||||||
$UPDATE_GOLDENS
|
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
|
Loading…
Reference in a new issue