Skip to content

Commit 3dba2b5

Browse files
committed
chore(ci): update CI configuration for concurrency and Flutter setup
1 parent 845c0a5 commit 3dba2b5

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
permissions:
1313
contents: write
1414

15+
concurrency:
16+
group: ci-${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref_name }}
17+
cancel-in-progress: true
18+
1519
env:
1620
ROOT: "${{ github.workspace }}"
1721
SCRIPTS: "${{ github.workspace }}/.github/scripts"
@@ -64,7 +68,7 @@ jobs:
6468

6569
android:
6670
name: Test on Android
67-
runs-on: ubuntu-22.04
71+
runs-on: ubuntu-24.04
6872
steps:
6973
- name: Checkout repository
7074
uses: actions/checkout@v4
@@ -186,10 +190,17 @@ jobs:
186190
- name: Checkout repository
187191
uses: actions/checkout@v4
188192

189-
- name: Setup Flutter
190-
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
193+
- name: Get Flutter version from ".fvmrc"
194+
uses: kuhnroyal/flutter-fvm-config-action/config@v3
195+
id: fvm-config-action
191196
with:
192197
path: '.fvmrc'
198+
199+
- name: Setup Flutter
200+
uses: subosito/flutter-action@v2
201+
with:
202+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
203+
channel: 'master' # https://github.com/subosito/flutter-action/issues/345#issuecomment-2657332687
193204
cache: true
194205

195206
- name: Install deps

0 commit comments

Comments
 (0)