Skip to content

Commit 48eea7d

Browse files
committed
Added default flutter version inputs to use with the job matrix.
1 parent 746795d commit 48eea7d

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: CI
22

3-
env:
4-
# Note: The version below should be manually updated to the latest second most recent version
5-
# after a new stable version comes out.
6-
flutter_n_minus_one_version: "3.24.5"
7-
83
on:
94
pull_request:
105
paths-ignore:
@@ -14,10 +9,20 @@ on:
149
- master
1510
paths-ignore:
1611
- '**.md'
17-
18-
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
20-
cancel-in-progress: true
12+
workflow_dispatch:
13+
inputs:
14+
flutter_n_minus_one_version:
15+
description: The N-1 version of Flutter.
16+
required: false
17+
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
18+
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
19+
# Note: The version below should be manually updated to the latest second most recent version
20+
# after a new stable version comes out.
21+
default: "3.24.5"
22+
flutter_current_version:
23+
description: The current version of Flutter.
24+
required: false
25+
default: "3.x"
2126

2227
jobs:
2328
# Does a sanity check that packages at least pass analysis on the N-1
@@ -29,10 +34,8 @@ jobs:
2934
strategy:
3035
matrix:
3136
flutter-version:
32-
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
33-
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
34-
- ${{ env.flutter_n_minus_one_version }}
35-
- "3.x"
37+
- ${{ inputs.flutter_n_minus_one_version }}
38+
- ${{ inputs.flutter_current_version }}
3639
name: Checks formatting, lints, and tests this library against a specific Flutter version.
3740
runs-on: ubuntu-latest
3841
steps:

0 commit comments

Comments
 (0)