mirror of https://github.com/flutter/samples.git
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.
39 lines
1015 B
39 lines
1015 B
name: Main Branch 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/samples'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
flutter_version: [stable, beta]
|
|
os: [ubuntu-latest, macos-latest]
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '17'
|
|
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
|
|
with:
|
|
channel: ${{ matrix.flutter_version }}
|
|
- run: flutter pub get && dart tool/ci_script.dart
|