File tree Expand file tree Collapse file tree 3 files changed +17
-13
lines changed Expand file tree Collapse file tree 3 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
+ pull_request :
5
+ paths-ignore :
6
+ - ' **.md'
4
7
push :
5
8
branches :
6
- - master
7
- pull_request :
9
+ - master
10
+ paths-ignore :
11
+ - ' **.md'
8
12
workflow_dispatch :
9
13
10
14
jobs :
11
15
check-format :
12
- name : Check format using flutter format .
16
+ name : Check format using flutter format.
13
17
runs-on : ubuntu-latest
14
18
15
19
steps :
16
20
- name : Checkout code
17
21
uses : actions/checkout@v2
18
- - uses : subosito/flutter-action@v1
19
- with :
20
- channel : beta
22
+ - name : Flutter Action
23
+ uses : subosito/flutter-action@v2
21
24
- name : Check format
22
- run : flutter format -n . --set-exit-if-changed
25
+ run : flutter format . --set-exit-if-changed
23
26
24
27
lint :
25
28
name : Lint
@@ -28,14 +31,15 @@ jobs:
28
31
steps :
29
32
- name : Checkout code
30
33
uses : actions/checkout@v2
31
- - uses : subosito/flutter-action@v1
32
- with :
33
- channel : beta
34
+ - name : Flutter Action
35
+ uses : subosito/flutter-action@v2
36
+ - name : Install Package Dependencies
37
+ run : flutter packages get
34
38
- name : Get dependencies for example
35
39
run : flutter pub get
36
40
working-directory : example
37
41
- name : Lint using flutter analyze
38
- run : flutter analyze
42
+ run : flutter analyze .
39
43
40
44
# test:
41
45
# name: Test2
Original file line number Diff line number Diff line change 1
- include : package:lint/analysis_options_package .yaml
1
+ include : package:flutter_lints/flutter .yaml
2
2
3
3
analyzer :
4
4
strong-mode :
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ dependencies:
15
15
dev_dependencies :
16
16
flutter_test :
17
17
sdk : flutter
18
- lint : ^1.8.2
18
+ flutter_lints : ^2.0.1
19
19
20
20
# For information on the generic Dart part of this file, see the
21
21
# following page: https://www.dartlang.org/tools/pub/pubspec
You can’t perform that action at this time.
0 commit comments