Skip to content

Commit ccb8533

Browse files
Dillon Nysdnys1
authored andcommitted
ci(3.0): Use Dart 3 stable
1 parent 5afc063 commit ccb8533

15 files changed

+52
-38
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: "Install Non-Platform Dependencies"
22
description: "Installs non-platform dependencies: Flutter, aft"
33
inputs:
4-
flutter-channel:
4+
channel:
55
required: false
66
description: The Flutter channel to user when running tests. Defaults to "stable".
7-
# TODO: Update to `stable` with Dart 3
8-
default: beta
7+
default: stable
98
flutter-version:
109
required: false
1110
description: The specific version of Flutter to run tests against.
@@ -16,7 +15,7 @@ runs:
1615
- uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d # 2.8.0
1716
with:
1817
cache: true
19-
channel: ${{ inputs.flutter-channel }}
18+
channel: ${{ inputs.channel }}
2019
flutter-version: ${{ inputs.flutter-version }}
2120

2221
# Install aft from path, links packages and runs build runner where needed.
@@ -25,8 +24,5 @@ runs:
2524
run: |
2625
git submodule update --init
2726
dart pub global activate -spath packages/aft
28-
if [[ "${{ inputs.flutter-channel }}" == "stable" ]]; then
29-
dart pub global run aft --config=aft.legacy.yaml constraints apply
30-
fi
3127
dart pub global run aft link
3228
dart pub global run aft exec --include="amplify_secure_storage_dart,amplify_auth_cognito_dart" -- dart run build_runner build --delete-conflicting-outputs

.github/workflows/aft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Dart
3737
uses: dart-lang/setup-dart@196f54580e9eee2797c57e85e289339f85e6779d # main
3838
with:
39-
sdk: beta
39+
sdk: stable
4040

4141
- name: Get Packages
4242
working-directory: packages/aft

.github/workflows/amplify_canaries.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18+
channel:
19+
- "beta"
20+
- "stable"
1821
flutter-version:
1922
- "any" # latest
20-
- "3.3.0"
23+
include:
24+
- channel: "stable"
25+
flutter-version: "3.10.0"
2126
steps:
2227
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
2328
with:
@@ -26,6 +31,7 @@ jobs:
2631
- name: Install dependencies
2732
uses: ./.github/composite_actions/install_dependencies
2833
with:
34+
channel: ${{ matrix.channel }}
2935
flutter-version: ${{ matrix.flutter-version }}
3036

3137
# Flutter requires Java 11 to build android apps with Gradle.
@@ -49,9 +55,14 @@ jobs:
4955
strategy:
5056
fail-fast: false
5157
matrix:
58+
channel:
59+
- "beta"
60+
- "stable"
5261
flutter-version:
5362
- "any" # latest
54-
- "3.3.0"
63+
include:
64+
- channel: "stable"
65+
flutter-version: "3.10.0"
5566
steps:
5667
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
5768
with:
@@ -61,6 +72,7 @@ jobs:
6172
- name: Install dependencies
6273
uses: ./.github/composite_actions/install_dependencies
6374
with:
75+
channel: ${{ matrix.channel }}
6476
flutter-version: ${{ matrix.flutter-version }}
6577

6678
# Flutter requires Java 11 to build android apps with Gradle.
@@ -93,9 +105,14 @@ jobs:
93105
strategy:
94106
fail-fast: false
95107
matrix:
108+
channel:
109+
- "beta"
110+
- "stable"
96111
flutter-version:
97112
- "any" # latest
98-
- "3.3.0"
113+
include:
114+
- channel: "stable"
115+
flutter-version: "3.10.0"
99116
ios-version:
100117
- "13.7"
101118
- "16"

.github/workflows/amplify_integration_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
# - name: Install dependencies
196196
# uses: ./.github/composite_actions/install_dependencies
197197
# with:
198-
# flutter-channel: stable
198+
# channel: stable
199199
# flutter-version: "3.3.10"
200200

201201
# - name: Fetch Amplify backend configurations

.github/workflows/dart_dart2js.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
matrix:
1919
sdk:
2020
# Minimum supported Dart version
21-
# - '3.0.0'
21+
- "3.0.0"
22+
- stable
2223
- beta
2324
browser:
2425
- chrome

.github/workflows/dart_ddc.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
matrix:
1919
sdk:
2020
# Minimum supported Dart version
21-
# - '3.0.0'
21+
- "3.0.0"
22+
- stable
2223
- beta
2324
browser:
2425
- chrome

.github/workflows/dart_native.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
- name: Setup Dart
4747
uses: dart-lang/setup-dart@196f54580e9eee2797c57e85e289339f85e6779d # main
4848
with:
49-
# sdk: stable
50-
sdk: beta
49+
sdk: stable
5150

5251
- name: Setup aft
5352
shell: bash # Run in bash regardless of platform

.github/workflows/dart_vm.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
matrix:
1919
sdk:
2020
# Minimum supported Dart version
21-
# - '3.0.0'
21+
- "3.0.0"
22+
- stable
2223
- beta
2324
steps:
2425
- name: Cache Pub dependencies

.github/workflows/flutter_android.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
# Allows other matrix items to run if one fails
2121
fail-fast: false
2222
matrix:
23-
sdk:
23+
channel:
24+
- stable
2425
- beta
2526
steps:
2627
- name: Git Checkout
@@ -33,7 +34,7 @@ jobs:
3334
uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d # 2.8.0
3435
with:
3536
cache: true
36-
channel: ${{ matrix.sdk }}
37+
channel: ${{ matrix.channel }}
3738

3839
- name: Setup aft
3940
run: flutter pub global activate -spath packages/aft

.github/workflows/flutter_ios.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
# Allows other matrix items to run if one fails
2626
fail-fast: false
2727
matrix:
28-
sdk:
28+
channel:
29+
- stable
2930
- beta
3031
steps:
3132
- name: Git Checkout
@@ -38,7 +39,7 @@ jobs:
3839
uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d # 2.8.0
3940
with:
4041
cache: true
41-
channel: ${{ matrix.sdk }}
42+
channel: ${{ matrix.channel }}
4243

4344
- name: Setup aft
4445
run: flutter pub global activate -spath packages/aft

0 commit comments

Comments
 (0)