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:
1717 steps :
1818 # Step 1: Checkout the repository
1919 - uses : actions/checkout@v2
20-
20+
2121 # Step 2: Setup Java with version 12.x
2222 - uses : actions/setup-java@v1
2323 with :
24- java-version : ' 12.x '
25-
24+ java-version : " 17.x "
25+
2626 # Step 3: Setup Flutter with version 3.7.11
2727 - uses : subosito/flutter-action@v1
2828 with :
29- flutter-version : ' 3.22.1 '
30-
29+ flutter-version : " 3.29.2 "
30+
3131 # Step 4: Get dependencies using pub get
3232 - run : flutter pub get
33-
33+
3434 # Step 5: Analyze the code using flutter analyze
35- - run : flutter analyze
36-
35+ - run : flutter analyze --no-fatal-warnings --no-fatal-infos
36+
3737 # Step 6: Format the code using flutter format (uncomment if needed)
3838 # - run: flutter format -n --set-exit-if-changed .
39-
39+
4040 # Step 7: Run tests using flutter test
4141 # - run: flutter test
42-
42+
4343 # Step 8: Build APK using flutter build apk
4444 - run : flutter build apk
45-
45+
4646 # Step 9: Upload the built APK as an artifact
4747 - uses : actions/upload-artifact@v4
4848 with :
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ void main() {
8787 group ('fetchTasks' , () {
8888 test ('Fetch data successfully' , () async {
8989 final responseJson = jsonEncode ({'data' : 'Mock data' });
90+ var baseUrl = await CredentialsStorage .getApiUrl ();
9091 when (mockClient.get (
9192 Uri .parse (
9293 '$baseUrl /tasks?email=email&origin=$origin &UUID=123&encryptionSecret=secret' ),
You can’t perform that action at this time.
0 commit comments