File tree Expand file tree Collapse file tree 1 file changed +9
-26
lines changed Expand file tree Collapse file tree 1 file changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -2,58 +2,41 @@ name: prepare
2
2
3
3
on :
4
4
workflow_dispatch :
5
- push :
6
- branches : [master]
7
- # don't run this workflow on version tags
8
- tags-ignore : ['v*']
9
- pull_request_target :
5
+ pull_request :
10
6
branches : [master]
11
7
12
8
jobs :
13
9
main :
14
- name : Flutter ${{ matrix.channel }}${{ matrix. version }}
10
+ name : Flutter ${{ matrix.flutter- version }}
15
11
runs-on : ubuntu-latest
16
12
17
13
strategy :
18
14
fail-fast : false
19
15
matrix :
20
- include :
21
- - version : 3.0.0
22
- - channel : stable
16
+ flutter-version : ['3.0.x', '3.3.x', '3.7.x', '3.10.x']
23
17
24
18
steps :
25
19
- name : Clone repository
26
20
uses : actions/checkout@v3
27
21
28
- - name : Install Flutter
29
- uses : subosito/flutter-action@v1
22
+ - name : Set up Flutter
23
+ uses : subosito/flutter-action@v2
30
24
with :
31
- channel : ${{ matrix.channel }}
32
- flutter-version : ${{ matrix.version }}
33
-
34
- - name : Flutter version
35
- run : flutter --version
36
-
37
- - name : Cache pub dependencies
38
- uses : actions/cache@v3
39
- with :
40
- path : ${{ env.FLUTTER_HOME }}/.pub-cache
41
- key : ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
42
- restore-keys : ${{ runner.os }}-pub-
25
+ flutter-version : ${{ matrix.flutter-version }}
26
+ cache : true
43
27
44
28
- name : flutter pub get
45
29
run : flutter pub get
46
30
47
- - name : flutter format
48
- run : flutter format --set-exit-if-changed .
31
+ - name : dart format
32
+ run : dart format --set-exit-if-changed .
49
33
50
34
- name : flutter analyze
51
35
run : flutter analyze --no-fatal-infos
52
36
53
37
- name : flutter test
54
38
run : flutter test
55
39
56
- # disabled because always fails for strange reasons
57
40
- name : ktlint check
58
41
working-directory : example/android
59
42
run : ./gradlew flutter_downloader:ktlintCheck
You can’t perform that action at this time.
0 commit comments