Flutter Games CI #644
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 Games CI | |
# Declare default permissions as read only. | |
permissions: read-all | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # Every day at midnight | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
flutter-tests: | |
name: Test Flutter ${{ matrix.flutter_version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
if: github.repository == 'flutter/games' | |
strategy: | |
fail-fast: false | |
matrix: | |
flutter_version: [stable, beta] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: subosito/flutter-action@74af56c5ed2697ba4621264652728e8d217e53d3 | |
with: | |
channel: ${{ matrix.flutter_version }} | |
- run: ./flutter_ci_script_${{ matrix.flutter_version }}.sh |