mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.1 KiB
68 lines
2.1 KiB
name: Beta Branch CI
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
on:
|
|
push:
|
|
branches: [beta]
|
|
pull_request:
|
|
branches: [beta]
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
# Run the stable test script on the beta channel. Since this branch will soon
|
|
# be merged into main as our stable-targeting code, this is the key thing we
|
|
# need to test.
|
|
stable-tests-on-beta:
|
|
runs-on: ${{ matrix.os }}
|
|
if: github.repository == 'flutter/samples'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
|
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '12.x'
|
|
- uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d
|
|
with:
|
|
channel: beta
|
|
- run: ./tool/flutter_ci_script_stable.sh
|
|
# Verify the Android add-to-app samples build and pass tests with the beta
|
|
# channel.
|
|
android-build:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'flutter/samples'
|
|
steps:
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
|
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '12.x'
|
|
- uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d
|
|
with:
|
|
channel: beta
|
|
- run: ./tool/android_ci_script.sh
|
|
# Verify the iOS add-to-app samples build and pass tests with the beta
|
|
# channel.
|
|
ios-build:
|
|
runs-on: macos-latest
|
|
if: github.repository == 'flutter/samples'
|
|
steps:
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
|
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '12.x'
|
|
- uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d
|
|
with:
|
|
channel: beta
|
|
- run: ./tool/ios_ci_script.sh
|