这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/flutterci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,32 @@ jobs:
steps:
# Step 1: Checkout the repository
- uses: actions/checkout@v2

# Step 2: Setup Java with version 12.x
- uses: actions/setup-java@v1
with:
java-version: '12.x'
java-version: "17.x"

# Step 3: Setup Flutter with version 3.7.11
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.22.1'
flutter-version: "3.29.2"

# Step 4: Get dependencies using pub get
- run: flutter pub get

# Step 5: Analyze the code using flutter analyze
- run: flutter analyze
- run: flutter analyze --no-fatal-warnings --no-fatal-infos

# Step 6: Format the code using flutter format (uncomment if needed)
# - run: flutter format -n --set-exit-if-changed .

# Step 7: Run tests using flutter test
# - run: flutter test

# Step 8: Build APK using flutter build apk
- run: flutter build apk

# Step 9: Upload the built APK as an artifact
- uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions test/api_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void main() {
group('fetchTasks', () {
test('Fetch data successfully', () async {
final responseJson = jsonEncode({'data': 'Mock data'});
var baseUrl = await CredentialsStorage.getApiUrl();
when(mockClient.get(
Uri.parse(
'$baseUrl/tasks?email=email&origin=$origin&UUID=123&encryptionSecret=secret'),
Expand Down