File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -17,32 +17,32 @@ jobs:
17
17
steps :
18
18
# Step 1: Checkout the repository
19
19
- uses : actions/checkout@v2
20
-
20
+
21
21
# Step 2: Setup Java with version 12.x
22
22
- uses : actions/setup-java@v1
23
23
with :
24
- java-version : ' 12.x '
25
-
24
+ java-version : " 17.x "
25
+
26
26
# Step 3: Setup Flutter with version 3.7.11
27
27
- uses : subosito/flutter-action@v1
28
28
with :
29
- flutter-version : ' 3.22.1 '
30
-
29
+ flutter-version : " 3.29.2 "
30
+
31
31
# Step 4: Get dependencies using pub get
32
32
- run : flutter pub get
33
-
33
+
34
34
# Step 5: Analyze the code using flutter analyze
35
- - run : flutter analyze
36
-
35
+ - run : flutter analyze --no-fatal-warnings --no-fatal-infos
36
+
37
37
# Step 6: Format the code using flutter format (uncomment if needed)
38
38
# - run: flutter format -n --set-exit-if-changed .
39
-
39
+
40
40
# Step 7: Run tests using flutter test
41
41
# - run: flutter test
42
-
42
+
43
43
# Step 8: Build APK using flutter build apk
44
44
- run : flutter build apk
45
-
45
+
46
46
# Step 9: Upload the built APK as an artifact
47
47
- uses : actions/upload-artifact@v4
48
48
with :
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ void main() {
87
87
group ('fetchTasks' , () {
88
88
test ('Fetch data successfully' , () async {
89
89
final responseJson = jsonEncode ({'data' : 'Mock data' });
90
+ var baseUrl = await CredentialsStorage .getApiUrl ();
90
91
when (mockClient.get (
91
92
Uri .parse (
92
93
'$baseUrl /tasks?email=email&origin=$origin &UUID=123&encryptionSecret=secret' ),
You can’t perform that action at this time.
0 commit comments