File tree 2 files changed +52
-9
lines changed
2 files changed +52
-9
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : CI/CD
2
2
3
- on :
3
+ on :
4
4
push :
5
5
tags :
6
- - v*
7
-
6
+ - v*
8
7
9
8
jobs :
10
9
flutter_test :
20
19
channel : " stable"
21
20
- run : flutter pub get
22
21
- run : flutter analyze
22
+ - run : flutter format --dry-run --set-exit-if-changed lib/
23
+ - run : flutter format --dry-run --set-exit-if-changed test/
23
24
- run : flutter test --coverage
24
25
- run : flutter test --machine > test-results.json
26
+ - uses : dorny/test-reporter@v1.4.2
27
+ with :
28
+ name : test-results
29
+ path : test-results.json
30
+ reporter : flutter-json
25
31
- uses : VeryGoodOpenSource/very_good_coverage@v1.1.1
26
32
with :
27
- min_coverage : 0
33
+ min_coverage : 0
34
+
35
+ build_ios :
36
+ name : Build Flutter (iOS)
37
+ needs : [flutter_test]
38
+ runs-on : macos-latest
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - uses : actions/setup-java@v1
42
+ with :
43
+ java-version : " 12.x"
44
+ - uses : subosito/flutter-action@v1
45
+ with :
46
+ channel : " stable"
47
+ - run : flutter pub get
48
+ - run : flutter clean
49
+ - run : flutter build ios --release --no-codesign
50
+
51
+ build_appbundle :
52
+ name : Build Flutter (Android)
53
+ needs : [flutter_test]
54
+ runs-on : ubuntu-latest
55
+ steps :
56
+ - uses : actions/checkout@v2
57
+ - uses : actions/setup-java@v1
58
+ with :
59
+ java-version : " 12.x"
60
+ - uses : subosito/flutter-action@v1
61
+ with :
62
+ channel : " stable"
63
+ - run : flutter pub get
64
+ - run : flutter clean
65
+ - run : flutter build appbundle
66
+ - name : Upload appbundle
67
+ uses : actions/upload-artifact@v2.1.4
68
+ with :
69
+ name : appbundle
70
+ path : build/app/outputs/bundle/release/app-release.aab
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ void main() {
16
16
await tester.pumpWidget (const MyApp ());
17
17
18
18
// Verify that our counter starts at 0.
19
- expect (find.text ('1 ' ), findsOneWidget);
20
- expect (find.text ('0 ' ), findsNothing);
19
+ expect (find.text ('0 ' ), findsOneWidget);
20
+ expect (find.text ('1 ' ), findsNothing);
21
21
22
22
// Tap the '+' icon and trigger a frame.
23
23
await tester.tap (find.byIcon (Icons .add));
24
24
await tester.pump ();
25
25
26
26
// Verify that our counter has incremented.
27
- expect (find.text ('1 ' ), findsNothing);
28
- expect (find.text ('0 ' ), findsOneWidget);
27
+ expect (find.text ('0 ' ), findsNothing);
28
+ expect (find.text ('1 ' ), findsOneWidget);
29
29
});
30
30
}
You can’t perform that action at this time.
0 commit comments