Skip to content

Commit

Permalink
[ci] Only run with min and max supported Flutter SDK version (#103)
Browse files Browse the repository at this point in the history
At this time, min supported Flutter SDK version is 2.10.x, and max
supported Flutter version is the latest.
  • Loading branch information
littleGnAl authored Aug 12, 2024
1 parent 3ff72d3 commit 1a240fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
flutter-version: '3.x'
cache: true
- run: flutter analyze

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
flutter-version: '3.x'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
Expand All @@ -59,7 +59,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
Expand All @@ -80,7 +80,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: macos-13
timeout-minutes: 60
steps:
Expand All @@ -99,8 +99,8 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
runs-on: macos-11
version: ['2.10.5', '3.x']
runs-on: macos-13
timeout-minutes: 60
steps:
- uses: actions/checkout@v1
Expand All @@ -119,7 +119,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
Expand All @@ -140,7 +140,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -161,7 +161,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -182,7 +182,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -201,7 +201,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
strategy:
matrix:
version: ['2.10.5', '3.0.0', '3.3.9', '3.7.3', '3.10.0']
version: ['2.10.5', '3.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -226,7 +226,7 @@ jobs:
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0' # Run the latest version
flutter-version: '3.x' # Run the latest version
cache: true
- name: windows integration test
shell: bash
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0' # Run the latest version
flutter-version: '3.x' # Run the latest version
cache: true
- run: flutter config --enable-macos-desktop
- name: run macos integration test
Expand All @@ -317,7 +317,7 @@ jobs:
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0' # Run the latest version
flutter-version: '3.x' # Run the latest version
cache: true
- name: run android integration test
uses: reactivecircus/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.7.0'
repositories {
google()
mavenCentral()
Expand Down
1 change: 1 addition & 0 deletions lib/iris_method_channel_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: avoid_classes_with_only_static_members
/// A web implementation of the IrisMethodChannelPlatform of the IrisMethodChannel plugin.
class IrisMethodChannelWeb {
/// Constructs a IrisMethodChannelWeb
Expand Down

0 comments on commit 1a240fa

Please sign in to comment.