Flutter CI #15107
This file contains hidden or 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, main] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 | |
| with: | |
| distribution: "zulu" # See https://github.com/actions/setup-java#supported-distributions | |
| java-version: "17" | |
| - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 | |
| with: | |
| channel: ${{ matrix.flutter_version }} | |
| - run: dart --version | |
| - run: flutter --version | |
| - run: ./flutter_ci_script_${{ matrix.flutter_version }}.sh |