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.
samples/.github/workflows/main.yml

61 lines
1.4 KiB

name: Flutter CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Every day at midnight
jobs:
flutter-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- flutter_version: dev
allow_failure: true
- flutter_version: beta
allow_failure: true
- flutter_version: stable
allow_failure: false
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.sh
continue-on-error: ${{ matrix.allow_failure }}
android-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: stable
- run: ./tool/android_ci_script.sh
ios-build:
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: stable
- run: ./tool/ios_ci_script.sh