From 29eed73a1e1a5b8ef19236cc294efc28795987dc Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:35:31 +0200 Subject: [PATCH] Delete run_golden_tests.yml --- .github/workflows/run_golden_tests.yml | 68 -------------------------- 1 file changed, 68 deletions(-) delete mode 100644 .github/workflows/run_golden_tests.yml diff --git a/.github/workflows/run_golden_tests.yml b/.github/workflows/run_golden_tests.yml deleted file mode 100644 index fd5e691..0000000 --- a/.github/workflows/run_golden_tests.yml +++ /dev/null @@ -1,68 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Run golden tests - -on: - workflow_dispatch: - inputs: - update-goldens: - type: boolean - description: Update goldens - default: false - -jobs: - run-golden-tests: - name: Run golden tests - timeout-minutes: 5 - runs-on: macos-latest - steps: - - uses: actions/checkout@v3 - with: - 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 - with: - channel: "stable" - flutter-version: "3.13.9" - - - name: Prepare app - run: | - flutter --version - flutter pub get - flutter pub run intl_utils:generate - - - name: Run tests - env: - UPDATE_GOLDENS: ${{inputs.update-goldens && '--update-goldens' || '' }} - run: | - defaults -currentHost write -g AppleFontSmoothing -int 0 - goldens=$(find ./test -name "*_golden_test.dart" -print) - for f in $goldens; do - flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg $UPDATE_GOLDENS - done - - - name: Commit changes - if: ${{ inputs.update-goldens }} - run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git add **/goldens/*.png - git commit -m "Updated goldens" - - - name: Push to main - if: ${{ inputs.update-goldens }} - uses: CasperWA/push-protected@v2 - with: - token: ${{ secrets.PUSH_TO_MAIN_TOKEN }} - branch: ${{ github.ref_name }} - unprotect_reviews: true