Flutter CI #13996
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # Every day at midnight | |
defaults: | |
run: | |
shell: bash | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
test: | |
name: Test Flutter ${{ matrix.flutter_version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
flutter_version: [stable, beta, master] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 | |
with: | |
distribution: 'zulu' # See https://github.com/actions/setup-java#supported-distributions | |
java-version: "17" | |
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
with: | |
channel: ${{ matrix.flutter_version }} | |
- run: dart --version | |
- run: flutter --version | |
- run: ./flutter_ci_script_${{ matrix.flutter_version }}.sh |