Skip to content

Commit

Permalink
Fix generator tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Feb 7, 2024
1 parent 61d5983 commit 6ac22ab
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 34 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ jobs:
BAAS_BAASAAS_API_KEY: ${{ secrets.BAASAAS_API_KEY}}
defaults:
run:
working-directory: packages/realm/tests
shell: bash
working-directory: packages/realm/tests

steps:
- name: Checkout
Expand Down Expand Up @@ -469,6 +470,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
defaults:
run:
shell: bash
working-directory: packages/realm_generator

runs-on: ${{ matrix.os }}-latest
name: Generator Tests
Expand All @@ -484,9 +489,9 @@ jobs:
with:
channel: 'stable'

- name: Delete generated files
run: find . -name "*.realm.dart" -not -path "./generator/*" -delete
shell: bash
- name: Delete generated files in realm_dart
run: find . -name "*.realm.dart"
working-directory: packages/realm_dart

- name: Run generator in realm_dart
run: |
Expand Down Expand Up @@ -523,13 +528,11 @@ jobs:
git --no-pager diff -w
exit 1
fi
shell: bash
- name: Run generator tests
run: |
dart pub get
dart test -r expanded --coverage ./coverage/ --test-randomize-ordering-seed random
working-directory: packages/realm_generator
- name: Generate generator coverage report
if: matrix.os == 'ubuntu'
Expand All @@ -541,7 +544,6 @@ jobs:
--lcov \
--packages .dart_tool/package_config.json \
--report-on lib
working-directory: packages/realm_generator
- name: Publish Generator Coverage
if: matrix.os == 'ubuntu'
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:realm_common/realm_common.dart';

part 'asymmetric_object.realm.dart';

@RealmModel()
class _Asymmetric {
@PrimaryKey()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'asymmetric_object.dart';

// **************************************************************************
// RealmObjectGenerator
// **************************************************************************
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// MOCK FILE!
part of 'asymmetric_object.dart';
2 changes: 2 additions & 0 deletions packages/realm_generator/test/good_test_data/binary_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'dart:typed_data';

import 'package:realm_common/realm_common.dart';

part 'binary_type.realm.dart';

@RealmModel()
class _Foo {
late Uint8List requiredBinaryProp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'binary_type.dart';

// **************************************************************************
// RealmObjectGenerator
// **************************************************************************
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// MOCK FILE!
part of 'binary_type.dart';

0 comments on commit 6ac22ab

Please sign in to comment.