Skip to content
Open
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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
api/package-lock.json
worker/package-lock.json

- uses: subosito/flutter-action@v2
with:
channel: 'stable'

- run: ./scripts/lint.sh

build:
Expand Down Expand Up @@ -62,6 +66,10 @@ jobs:
api/package-lock.json
worker/package-lock.json

- uses: subosito/flutter-action@v2
with:
channel: 'stable'

- run: ./scripts/test.sh

release-scripts:
Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- **Node.js**: 20+ (managed by `npm`)
- **Docker**: Required for simulation engine
- **Package Manager**: `npm` (Node)
- **Flutter**: `stable` channel

## Setup
- **Install Node Dependencies**: `npm run install:all`
Expand All @@ -29,6 +30,8 @@
- **Worker Install**: `cd worker && npm install`
- **Worker Dev**: `cd worker && npm run dev`
- **Worker Test**: `cd worker && npm run test:unit`
- **Worker Flutter Lint**: `cd worker_flutter && flutter analyze --no-fatal-infos`
- **Worker Flutter Test**: `cd worker_flutter && flutter test`

## Deployment
- **CI**: `.github/workflows/ci.yml` (Runs on PR)
Expand All @@ -38,3 +41,4 @@
- `frontend/`: React app
- `api/`: Next.js API, ingestion, and analysis
- `worker/`: Node.js + Docker simulation runner
- `worker_flutter/`: Cross-platform desktop worker
4 changes: 4 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ cd frontend && npm ci && npm run lint && cd ..
# API
echo "=== API lint ==="
cd api && npm ci && npm run lint && cd ..

# Worker Flutter
echo "=== Worker Flutter lint ==="
cd worker_flutter && flutter pub get && flutter analyze --no-fatal-infos && cd ..
4 changes: 4 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ npm run test:ingestion && cd ..
# Worker tests
echo "=== Worker unit tests ==="
cd worker && npm ci && npm run test:unit && cd ..

# Worker Flutter
echo "=== Worker Flutter tests ==="
cd worker_flutter && flutter pub get && flutter test && cd ..
1 change: 0 additions & 1 deletion worker_flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import 'installer/install_progress_app.dart';
import 'installer/installer.dart';
import 'launch/auto_start_service.dart';
import 'launch/mode_picker_screen.dart';
import 'macos/activation_policy.dart';
import 'offline/offline_app.dart';
import 'sentry_setup.dart';
import 'telemetry.dart';
Expand Down
10 changes: 5 additions & 5 deletions worker_flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -692,10 +692,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.18"
material_color_utilities:
dependency: transitive
description:
Expand Down Expand Up @@ -1193,10 +1193,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a"
sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636"
url: "https://pub.dev"
source: hosted
version: "0.7.10"
version: "0.7.9"
tray_manager:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1374,5 +1374,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.11.5 <4.0.0"
dart: ">=3.11.0 <4.0.0"
flutter: ">=3.38.4"
2 changes: 1 addition & 1 deletion worker_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish_to: 'none'
version: 0.2.0+1

environment:
sdk: ^3.11.5
sdk: '>=3.11.0 <4.0.0'

dependencies:
flutter:
Expand Down
Loading