Skip to content

Commit 0041405

Browse files
ci: implement parallel pipelines for flutter beta and stable versions
1 parent 39e52f0 commit 0041405

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.fvmrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"flutter": "stable"
2+
"flutter": "stable",
3+
"flavors": {
4+
"stable": "stable",
5+
"beta": "beta"
6+
}
37
}

.github/workflows/base.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ on:
1111

1212
workflow_dispatch:
1313

14+
# This ensures that previous jobs for the PR are canceled when PR is updated
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1419
jobs:
1520
build:
1621
runs-on: macos-latest
22+
strategy:
23+
matrix:
24+
flutter-version: [stable, beta]
1725

1826
steps:
1927
- uses: actions/checkout@v4
@@ -34,6 +42,7 @@ jobs:
3442
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
3543
with:
3644
path: '.fvmrc'
45+
flavor: ${{ matrix.flutter-version }}
3746
- name: Install dependencies
3847
run: flutter pub get
3948
- name: Format code

0 commit comments

Comments
 (0)