chore: re-enable windows #1474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows integration test | |
| on: | |
| # Enable manual run | |
| workflow_dispatch: | |
| inputs: | |
| lane: | |
| description: "Fastlane lane" | |
| required: true | |
| default: "internal" | |
| type: choice | |
| options: | |
| - beta | |
| - promote_to_production | |
| - production | |
| push: | |
| branches: [main, dev,firestore] | |
| jobs: | |
| integration-testing-windows: | |
| name: "Integration Testing Windows" | |
| # && github.ref == 'refs/heads/dev' | |
| if: github.event_name == 'push' && contains(github.event.head_commit.message, 'only-windows') | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Export pub environment variable on Windows | |
| run: | | |
| if [ "$RUNNER_OS" == "Windows" ]; then | |
| echo "PUB_CACHE=$LOCALAPPDATA\\Pub\\Cache" >> $GITHUB_ENV | |
| fi | |
| shell: bash | |
| - run: git config --global core.autocrlf false | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| persist-credentials: true | |
| - name: Clone Flutter repository with stable channel | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.29.3" | |
| channel: stable | |
| - run: flutter doctor -v | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| - name: submodule init | |
| run: git submodule update --init | |
| - name: Configure Missing files | |
| shell: bash | |
| run: | | |
| echo "$INDEX" >> apps/flipper/web/index.html | |
| echo "$CONFIGDART" >> packages/flipper_login/lib/config.dart | |
| echo "$SECRETS" >> packages/flipper_models/lib/secrets.dart | |
| echo "$FIREBASEOPTIONS" >> apps/flipper/lib/firebase_options.dart | |
| echo "$FIREBASEOPTIONS" >> packages/flipper_models/lib/firebase_options.dart | |
| echo "$AMPLIFY_CONFIG" >> apps/flipper/lib/amplifyconfiguration.dart | |
| echo "$AMPLIFY_TEAM_PROVIDER" >> apps/flipper/amplify/team-provider-info.json | |
| env: | |
| INDEX: ${{ secrets.INDEX }} | |
| CONFIGDART: ${{ secrets.CONFIGDART }} | |
| SECRETS: ${{ secrets.SECRETS }} | |
| FIREBASEOPTIONS: ${{ secrets.FIREBASEOPTIONS }} | |
| AMPLIFY_CONFIG: ${{ secrets.AMPLIFY_CONFIG }} | |
| AMPLIFY_TEAM_PROVIDER: ${{ secrets.AMPLIFY_TEAM_PROVIDER }} | |
| - run: | | |
| dart pub global activate melos 6.3.2 | |
| melos bootstrap | |
| cd apps/flipper | |
| flutter test --dart-define=FLUTTER_TEST_ENV=false -d windows integration_test/smoke_windows_test.dart |