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
8 changes: 8 additions & 0 deletions .github/workflows/celest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
with:
channel: stable
cache: true
- name: Install Turso CLI
run: |
curl -sSfL https://get.tur.so/install.sh | bash
echo "PATH=$PATH:/home/runner/.turso" >> $GITHUB_ENV
env:
TURSO_INSTALL_SKIP_SIGNUP: 1
- name: Get Packages
working-directory: packages/celest
run: |
Expand All @@ -46,6 +52,8 @@ jobs:
- name: Test
working-directory: packages/celest
run: dart test
env:
TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }}
- name: Test (dart2js)
working-directory: packages/celest
run: dart test -p chrome
Expand Down
1 change: 1 addition & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

- fix: Don't throw if analysis_options.yaml is missing
- refactor(celest): Move `connect` method to `CelestDatabase` class

## 1.0.12

Expand Down
2 changes: 2 additions & 0 deletions apps/cli/fixtures/standalone/api/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ dependency_overrides:
path: ../../../../../../services/celest_cloud_core
celest_core:
path: ../../../../../../packages/celest_core
celest_db_studio:
path: ../../../../../../packages/celest_db_studio
dev_dependencies: {}
2 changes: 2 additions & 0 deletions apps/cli/fixtures/standalone/api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ dependency_overrides:
path: ../../../../../services/celest_cloud_core
celest_core:
path: ../../../../../packages/celest_core
celest_db_studio:
path: ../../../../../packages/celest_db_studio

dev_dependencies:
lints: ^5.0.0
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/fixtures/standalone/auth/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ dependency_overrides:
path: ../../../../../../services/celest_cloud_core
celest_core:
path: ../../../../../../packages/celest_core
celest_db_studio:
path: ../../../../../../packages/celest_db_studio
dev_dependencies: {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ library; // ignore_for_file: no_leading_underscores_for_library_prefixes

import 'package:celest/celest.dart' as _$celest;
import 'package:celest/src/core/context.dart' as _$celest;
import 'package:celest/src/runtime/data/connect.dart' as _$celest;
import 'package:celest/src/runtime/data/celest_database.dart' as _$celest;
import 'package:celest_cloud_auth/src/database/auth_database.dart' as _$celest;

/// The data services for the Celest backend.
Expand All @@ -18,15 +18,16 @@ class CelestData {

/// Initializes the databases attached to this project in the given [context].
static Future<void> init(_$celest.Context context) async {
final cloudAuth = await _$celest.CelestDatabase.create(
context,
name: 'CloudAuthDatabase',
factory: _$celest.CloudAuthDatabase.new,
hostnameVariable: const _$celest.env('CLOUD_AUTH_DATABASE_HOST'),
tokenSecret: const _$celest.secret('CLOUD_AUTH_DATABASE_TOKEN'),
);
context.put(
_cloudAuthKey,
await _$celest.connect(
context,
name: 'CloudAuthDatabase',
factory: _$celest.CloudAuthDatabase.new,
hostnameVariable: const _$celest.env('CLOUD_AUTH_DATABASE_HOST'),
tokenSecret: const _$celest.secret('CLOUD_AUTH_DATABASE_TOKEN'),
),
await cloudAuth.connect(),
);
}

Expand Down
2 changes: 2 additions & 0 deletions apps/cli/fixtures/standalone/auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ dependency_overrides:
path: ../../../../../services/celest_cloud_core
celest_core:
path: ../../../../../packages/celest_core
celest_db_studio:
path: ../../../../../packages/celest_db_studio

dev_dependencies:
lints: ^5.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import 'package:hrana/src/exception.dart' as _$hrana_exception;
import 'package:http/src/exception.dart' as _$http_exception;
import 'package:mustache_template/src/template_exception.dart'
as _$mustache_template_template_exception;
import 'package:path/src/path_exception.dart' as _$path_path_exception;
import 'package:petitparser/src/core/exception.dart' as _$petitparser_exception;
import 'package:shelf/src/hijack_exception.dart' as _$shelf_hijack_exception;
import 'package:source_span/src/span_exception.dart'
Expand Down Expand Up @@ -549,12 +548,6 @@ class CelestFunctionsTasks {
errorValue),
stackTrace,
);
case 'path.PathException':
Error.throwWithStackTrace(
_$celest.Serializers.instance
.deserialize<_$path_path_exception.PathException>(errorValue),
stackTrace,
);
case 'hrana.ConnectionClosed':
Error.throwWithStackTrace(
_$celest.Serializers.instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import 'package:hrana/src/exception.dart' as _$hrana_exception;
import 'package:http/src/exception.dart' as _$http_exception;
import 'package:mustache_template/src/template_exception.dart'
as _$mustache_template_template_exception;
import 'package:path/src/path_exception.dart' as _$path_path_exception;
import 'package:petitparser/src/core/exception.dart' as _$petitparser_exception;
import 'package:petitparser/src/core/result.dart' as _$petitparser_result;
import 'package:shelf/src/hijack_exception.dart' as _$shelf_hijack_exception;
Expand Down Expand Up @@ -1172,14 +1171,6 @@ void initSerializers({_$celest.Serializers? serializers}) {
);
},
));
_$celest.Serializers.instance.put(_$celest.Serializer.define<
_$path_path_exception.PathException, Map<String, Object?>>(
serialize: ($value) => <String, Object?>{r'message': $value.message},
deserialize: ($serialized) {
return _$path_path_exception.PathException(
($serialized[r'message'] as String));
},
));
_$celest.Serializers.instance.put(_$celest.Serializer.define<
_$petitparser_exception.ParserException, Map<String, Object?>>(
serialize: ($value) => <String, Object?>{
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/fixtures/standalone/data/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ dependency_overrides:
path: ../../../../../../services/celest_cloud_core
celest_core:
path: ../../../../../../packages/celest_core
celest_db_studio:
path: ../../../../../../packages/celest_db_studio
dev_dependencies: {}
6 changes: 0 additions & 6 deletions apps/cli/fixtures/standalone/data/goldens/ast.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading