Fix CI breakage (#2273) #14209
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: | |
# Add master back once https://github.com/flutter/flutter/issues/160558 is fixed | |
flutter_version: [stable, beta] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b | |
with: | |
distribution: 'zulu' # See https://github.com/actions/setup-java#supported-distributions | |
java-version: "17" | |
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff | |
with: | |
channel: ${{ matrix.flutter_version }} | |
- run: dart --version | |
- run: flutter --version | |
- run: ./flutter_ci_script_${{ matrix.flutter_version }}.sh |