Skip to content

Commit

Permalink
Adding new workflow for beta. (flutter#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrogdon authored Feb 7, 2021
1 parent c8a2327 commit 07e4a51
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Beta Branch CI

on:
push:
branches: [beta]
pull_request:
branches: [beta]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Every day at midnight

defaults:
run:
shell: bash

jobs:
flutter-tests:
name: Test Flutter ${{ matrix.flutter_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
flutter_version: [dev, beta]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.flutter_version }}
- run: ./tool/flutter_ci_script_${{ matrix.flutter_version }}.sh
# Run the stable test script on the beta channel. Since this branch will soon
# be merged into master as our stable-targeting code, this is the key thing we
# need to test.
stable-tests-on-beta:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
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
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
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
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: beta
- run: ./tool/ios_ci_script.sh
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flutter CI
name: Master Branch CI

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Flutter samples

[![Build Status](https://github.com/flutter/samples/workflows/Flutter%20CI/badge.svg)](https://github.com/flutter/samples/actions?workflow=Flutter%20CI)
[![Build Status](https://github.com/flutter/samples/workflows/Master%20Branch%20CI/badge.svg)](https://github.com/flutter/samples/actions?workflow=Master%20Branch%20CI)

A collection of open source samples that illustrate best practices for
[Flutter](https://flutter.dev).
Expand Down

0 comments on commit 07e4a51

Please sign in to comment.