Skip to content

Commit 07e4a51

Browse files
authored
Adding new workflow for beta. (flutter#695)
1 parent c8a2327 commit 07e4a51

File tree

3 files changed

+79
-2
lines changed

3 files changed

+79
-2
lines changed

.github/workflows/beta.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flutter CI
1+
name: Master Branch CI
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flutter samples
22

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

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

0 commit comments

Comments
 (0)