|
| 1 | +name: Beta Branch CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [beta] |
| 6 | + pull_request: |
| 7 | + branches: [beta] |
| 8 | + workflow_dispatch: |
| 9 | + schedule: |
| 10 | + - cron: '0 0 * * *' # Every day at midnight |
| 11 | + |
| 12 | +defaults: |
| 13 | + run: |
| 14 | + shell: bash |
| 15 | + |
| 16 | +jobs: |
| 17 | + flutter-tests: |
| 18 | + name: Test Flutter ${{ matrix.flutter_version }} on ${{ matrix.os }} |
| 19 | + runs-on: ${{ matrix.os }} |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + flutter_version: [dev, beta] |
| 24 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + - uses: actions/setup-java@v1 |
| 28 | + with: |
| 29 | + java-version: '12.x' |
| 30 | + - uses: subosito/flutter-action@v1 |
| 31 | + with: |
| 32 | + channel: ${{ matrix.flutter_version }} |
| 33 | + - run: ./tool/flutter_ci_script_${{ matrix.flutter_version }}.sh |
| 34 | + # Run the stable test script on the beta channel. Since this branch will soon |
| 35 | + # be merged into master as our stable-targeting code, this is the key thing we |
| 36 | + # need to test. |
| 37 | + stable-tests-on-beta: |
| 38 | + runs-on: ${{ matrix.os }} |
| 39 | + strategy: |
| 40 | + fail-fast: false |
| 41 | + matrix: |
| 42 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + - uses: actions/setup-java@v1 |
| 46 | + with: |
| 47 | + java-version: '12.x' |
| 48 | + - uses: subosito/flutter-action@v1 |
| 49 | + with: |
| 50 | + channel: beta |
| 51 | + - run: ./tool/flutter_ci_script_stable.sh |
| 52 | + # Verify the Android add-to-app samples build and pass tests with the beta |
| 53 | + # channel. |
| 54 | + android-build: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v2 |
| 58 | + - uses: actions/setup-java@v1 |
| 59 | + with: |
| 60 | + java-version: '12.x' |
| 61 | + - uses: subosito/flutter-action@v1 |
| 62 | + with: |
| 63 | + channel: beta |
| 64 | + - run: ./tool/android_ci_script.sh |
| 65 | + # Verify the iOS add-to-app samples build and pass tests with the beta |
| 66 | + # channel. |
| 67 | + ios-build: |
| 68 | + runs-on: macos-latest |
| 69 | + steps: |
| 70 | + - uses: actions/checkout@v2 |
| 71 | + - uses: actions/setup-java@v1 |
| 72 | + with: |
| 73 | + java-version: '12.x' |
| 74 | + - uses: subosito/flutter-action@v1 |
| 75 | + with: |
| 76 | + channel: beta |
| 77 | + - run: ./tool/ios_ci_script.sh |
0 commit comments