Skip to content

Commit 080684e

Browse files
committed
replace other workflows
1 parent 4087866 commit 080684e

File tree

4 files changed

+5
-24
lines changed

4 files changed

+5
-24
lines changed

.github/actions/setup-flutter/action.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
name: Set up Flutter
44

5-
inputs:
6-
channel:
7-
description: The Flutter build release channel
8-
required: false
9-
default: stable
10-
flutter-version:
11-
description: The Flutter version to make available on the path
12-
required: false
13-
default: ""
14-
155
runs:
166
using: composite
177
steps:
@@ -22,10 +12,10 @@ runs:
2212
- name: Set action inputs
2313
id: flutter-action
2414
shell: bash
15+
env:
16+
FLUTTER_VERSION: "3.32.8"
2517
run: |
26-
$GITHUB_ACTION_PATH/setup.sh -p \
27-
-n '${{ inputs.flutter-version }}' \
28-
${{ inputs.channel }}
18+
$GITHUB_ACTION_PATH/setup.sh -p -n "$FLUTTER_VERSION" stable
2919
3020
- name: Cache Flutter
3121
id: cache-flutter

.github/workflows/e2e-android.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ jobs:
2020
distribution: "zulu"
2121
java-version: "21"
2222
- name: Set up Flutter
23-
uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
24-
with:
25-
channel: stable
26-
flutter-version: 3.32.8
23+
uses: ./.github/actions/setup-flutter
2724

2825
- name: Build Android
2926
working-directory: e2e

.github/workflows/e2e-ios.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ jobs:
2525
run: xcodebuild -downloadPlatform iOS
2626

2727
- name: Set up Flutter
28-
uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
29-
with:
30-
channel: stable
31-
flutter-version: 3.32.8
28+
uses: ./.github/actions/setup-flutter
3229

3330
- name: Enable Swift Package Manager
3431
run: flutter config --enable-swift-package-manager

.github/workflows/test-flutter.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626

2727
- name: Set up Flutter
2828
uses: ./.github/actions/setup-flutter
29-
with:
30-
channel: stable
31-
flutter-version: 3.19.2
3229

3330
- name: Validate package
3431
run: dart pub publish --dry-run

0 commit comments

Comments
 (0)