feat(firebaseai): live session resumption #3041
Workflow file for this run
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: e2e-windows | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-windows | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'website/**' | |
| - '**/example/**' | |
| - '!**/example/integration_test/**' | |
| - '**/flutterfire_ui/**' | |
| - '**.md' | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'website/**' | |
| - '**/example/**' | |
| - '!**/example/integration_test/**' | |
| - '**/flutterfire_ui/**' | |
| - '**.md' | |
| workflow_call: | |
| inputs: | |
| nightly_test_mode: | |
| type: boolean | |
| default: false | |
| jobs: | |
| windows: | |
| runs-on: windows-latest | |
| timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 45 }} | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a | |
| name: Install Node.js 20 | |
| with: | |
| node-version: "20" | |
| - uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff | |
| with: | |
| channel: 'stable' | |
| cache: true | |
| cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" | |
| pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" | |
| - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 | |
| with: | |
| run-bootstrap: false | |
| melos-version: '3.0.0' | |
| - name: "Bootstrap package" | |
| run: melos bootstrap --scope tests && melos bootstrap --scope "cloud_firestore*" | |
| - name: "Install Tools" | |
| run: | | |
| npm install -g firebase-tools | |
| - name: "Build Windows (Release)" | |
| run: cd tests && flutter build windows --release | |
| - name: Start Firebase Emulator and run tests | |
| run: cd ./.github/workflows/scripts && firebase emulators:exec --project flutterfire-e2e-tests "cd ../../../tests && flutter test .\integration_test\e2e_test.dart -d windows --verbose" | |
| windows-firestore: | |
| runs-on: windows-latest | |
| if: ${{ !inputs.nightly_test_mode }} | |
| timeout-minutes: ${{ inputs.nightly_test_mode && 5 || 45 }} | |
| steps: | |
| - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
| - uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a | |
| name: Install Node.js 20 | |
| with: | |
| node-version: "20" | |
| - uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff | |
| with: | |
| channel: 'stable' | |
| cache: true | |
| cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" | |
| pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" | |
| - uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 | |
| with: | |
| run-bootstrap: false | |
| melos-version: '3.0.0' | |
| - name: "Bootstrap package" | |
| run: melos bootstrap --scope tests && melos bootstrap --scope "cloud_firestore*" | |
| - name: "Install Tools" | |
| run: | | |
| npm install -g firebase-tools | |
| - name: Start Firebase Emulator and run tests | |
| run: | | |
| cd ./.github/workflows/scripts | |
| firebase emulators:exec --project flutterfire-e2e-tests "cd ../../../packages/cloud_firestore/cloud_firestore/example && flutter drive --target=.\integration_test\e2e_test.dart --driver=.\test_driver\integration_test.dart -d windows --verbose" 2>&1 | Tee-Object -FilePath output.log | |
| $exitCode = $LASTEXITCODE | |
| $output = Get-Content output.log -Raw | |
| if ($output -match '\[E\]' -or $output -match 'Some tests failed') { | |
| Write-Error "All tests did not pass. Please check the logs for more information." | |
| exit 1 | |
| } | |
| exit $exitCode |