|
| 1 | +name: firebase_dynamic_links |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - "packages/firebase_dynamic_links/**" |
| 7 | + - ".github/workflows/firebase_dynamic_links.yaml" |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - master |
| 11 | + paths-ignore: |
| 12 | + - "docs/**" |
| 13 | + - "**.md" |
| 14 | + |
| 15 | +env: |
| 16 | + FLUTTERFIRE_PLUGIN_SCOPE: "*firebase_dynamic_links*" |
| 17 | + FLUTTERFIRE_PLUGIN_SCOPE_EXAMPLE: "*firebase_dynamic_links_example*" |
| 18 | + # TODO(Salakar): `flutter_driver` does not yet support NNBD |
| 19 | + FLUTTER_COMMAND_FLAGS: "--no-sound-null-safety" |
| 20 | + |
| 21 | +jobs: |
| 22 | + android: |
| 23 | + if: github.event_name == 'pull_request' |
| 24 | + runs-on: macos-latest |
| 25 | + timeout-minutes: 30 |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v1 |
| 28 | + with: |
| 29 | + fetch-depth: 0 |
| 30 | + - name: "Install Flutter" |
| 31 | + run: ./.github/workflows/scripts/install-flutter.sh stable |
| 32 | + - name: "Install Tools" |
| 33 | + run: ./.github/workflows/scripts/install-tools.sh |
| 34 | + - name: "Build Example" |
| 35 | + run: ./.github/workflows/scripts/build-example.sh android |
| 36 | +# TODO: Currently has no e2e tests. |
| 37 | +# - name: "Drive Example" |
| 38 | +# uses: reactivecircus/android-emulator-runner@v2 |
| 39 | +# with: |
| 40 | +# api-level: 28 |
| 41 | +# arch: x86_64 |
| 42 | +# # Firebase Database works without Google Play Services, so we don't use the `googleapis` |
| 43 | +# # emulator target as it's considerably slower on CI. |
| 44 | +# target: default |
| 45 | +# profile: Nexus 5X |
| 46 | +# script: ./.github/workflows/scripts/drive-example.sh android |
| 47 | + |
| 48 | + apple: |
| 49 | + runs-on: macos-latest |
| 50 | + timeout-minutes: 35 |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v1 |
| 53 | + with: |
| 54 | + fetch-depth: 0 |
| 55 | + - name: "Install Flutter" |
| 56 | + run: ./.github/workflows/scripts/install-flutter.sh stable |
| 57 | + - name: "Install Tools" |
| 58 | + run: | |
| 59 | + ./.github/workflows/scripts/install-tools.sh |
| 60 | + flutter config --enable-macos-desktop |
| 61 | + - name: "Build iOS Example" |
| 62 | + run: ./.github/workflows/scripts/build-example.sh ios |
| 63 | +# TODO: Currently has no e2e tests. |
| 64 | +# - name: "Drive iOS Example" |
| 65 | +# run: ./.github/workflows/scripts/drive-example.sh ios |
| 66 | +# TODO: Currently does not have macOS support. |
| 67 | +# - name: "Build MacOS Example" |
| 68 | +# run: ./.github/workflows/scripts/build-example.sh macos |
| 69 | +# - name: "Drive MacOS Example" |
| 70 | +# run: ./.github/workflows/scripts/drive-example.sh macos |
0 commit comments