mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-07-05 13:40:41 +00:00
Compare commits
3 commits
a6aa736a36
...
74a6091f19
Author | SHA1 | Date | |
---|---|---|---|
![]() |
74a6091f19 | ||
![]() |
0e9dc1c524 | ||
![]() |
c9bc8bc55d |
2 changed files with 9 additions and 3 deletions
10
.github/workflows/pr_check.yml
vendored
10
.github/workflows/pr_check.yml
vendored
|
@ -16,6 +16,9 @@ jobs:
|
|||
name: Analyze & test
|
||||
runs-on: macos-14
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
EMPTY_CONSTANTS: Y29uc3QgU3RyaW5nIGlhcFNlcnZlclVybCA9ICcnOwpjb25zdCBTdHJpbmcgaXNzdWVzUmVwb3J0VXJsID0gJyc7CmNvbnN0IFN0cmluZyBzb3VyY2VDb2RlVXJsID0gJyc7CmNvbnN0IFN0cmluZyBjb250YWN0RW1haWwgPSAnJzsK
|
||||
EMPTY_FIREBASE_OPTIONS: Ly8gaWdub3JlX2Zvcl9maWxlOiB0eXBlPWxpbnQKaW1wb3J0ICdwYWNrYWdlOmZpcmViYXNlX2NvcmUvZmlyZWJhc2VfY29yZS5kYXJ0JyBzaG93IEZpcmViYXNlT3B0aW9uczsKY2xhc3MgRGVmYXVsdEZpcmViYXNlT3B0aW9ucyB7c3RhdGljIEZpcmViYXNlT3B0aW9ucyBnZXQgY3VycmVudFBsYXRmb3JtID0+RmlyZWJhc2VPcHRpb25zKGFwaUtleTogJycsIGFwcElkOiAnJywgbWVzc2FnaW5nU2VuZGVySWQ6ICcnLCBwcm9qZWN0SWQ6ICcnKTt9Cg==
|
||||
steps:
|
||||
- uses: 8BitJonny/gh-get-current-pr@2.2.0
|
||||
id: PR
|
||||
|
@ -37,9 +40,12 @@ jobs:
|
|||
run: bash ./.github/scripts/stub_iap.sh
|
||||
|
||||
- name: Restore secrets
|
||||
env:
|
||||
CONSTANTS: ${{ steps.fetch-iap.conclusion == 'success' && secrets.CONSTANTS || env.EMPTY_CONSTANTS }}
|
||||
FIREBASE_OPTIONS: ${{ steps.fetch-iap.conclusion == 'success' && secrets.FIREBASE_OPTIONS || env.EMPTY_FIREBASE_OPTIONS }}
|
||||
run: |
|
||||
bash .github/scripts/restore_from_base64.sh "${{ secrets.CONSTANTS }}" "lib/constants.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ secrets.FIREBASE_OPTIONS }}" "lib/firebase_options.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ env.CONSTANTS }}" "lib/constants.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ env.FIREBASE_OPTIONS }}" "lib/firebase_options.dart"
|
||||
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
defaults -currentHost write -g AppleFontSmoothing -int 0
|
||||
goldens=$(find ./test -name "*_golden_test.dart" -print)
|
||||
for f in $goldens; do
|
||||
fvm flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg --update-goldens
|
||||
flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg --update-goldens
|
||||
done
|
||||
defaults -currentHost write -g AppleFontSmoothing -int 3
|
||||
|
|
Loading…
Reference in a new issue