Skip to content

Bump dependencies #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 31, 2025
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
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on: push

env:
# Keep this in sync with the version used by FlutterFlow.
DART_VERSION: 3.4.3
DART_VERSION: 3.5.2
FLUTTER_VERSION: 3.24.2

jobs:
check:
Expand All @@ -21,7 +22,7 @@ jobs:

- name: Install dependencies
run: |
dart pub get
dart pub get --enforce-lockfile

- name: Analyze code
run: |
Expand All @@ -34,24 +35,28 @@ jobs:
build_and_test:
runs-on: ${{ matrix.os }}
needs: check
timeout-minutes: 10
timeout-minutes: 30

strategy:
# Can't run in parallel otherwise we get rate limted
max-parallel: 1
matrix:
os: [ubuntu-24.04, windows-2022, macos-14]
os: [ubuntu-24.04, windows-2025, windows-2022, macos-14]

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2
with:
sdk: ${{ env.DART_VERSION }}
channel: master
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

- name: Install dependencies
run: |
dart pub get
dart pub get --enforce-lockfile

- name: Build
run: |
Expand All @@ -62,5 +67,7 @@ jobs:
dart run bin/flutterflow_cli.dart -h

- name: Test
env:
FF_TESTER_TOKEN: ${{ secrets.FF_TESTER_TOKEN }}
run: |
dart test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/flutterflow
.dart_tool/
pubspec.lock
export/
9 changes: 7 additions & 2 deletions bin/flutterflow_cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutterflow_cli/src/flutterflow_api_client.dart';

const kDefaultEndpoint = 'https://api.flutterflow.io/v1';

void main(List<String> args) async {
Future<void> appMain(List<String> args) async {
final parsedArguments = _parseArgs(args);

final token =
Expand Down Expand Up @@ -71,7 +71,8 @@ void main(List<String> args) async {
break;
default:
}
} catch (_) {
} catch (e) {
stderr.write('Error running the application: $e\n');
exit(1);
}
}
Expand Down Expand Up @@ -181,3 +182,7 @@ ArgResults _parseArgs(List<String> args) {

return parsed;
}

void main(List<String> args) async {
await appMain(args);
}
Loading