Skip to content

Commit

Permalink
Fix CI Action run.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Puzak committed Jun 16, 2022
1 parent ec4dd53 commit d566e48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Run tests
working-directory: floor_generator
run: pub run test_cov
run: dart run test_cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
8 changes: 3 additions & 5 deletions floor_generator/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,9 @@ packages:
test_cov:
dependency: "direct dev"
description:
path: "."
ref: "issue/clean_up_deprecate"
resolved-ref: "832ae125aea3d48ef5f63d2cc8e9e9720bd02fda"
url: "https://github.com/dkaera/test_cov.git"
source: git
name: test_cov
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
typed_data:
dependency: transitive
Expand Down
6 changes: 1 addition & 5 deletions floor_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ dev_dependencies:
mockito: ^5.2.0
path: ^1.8.0
test: ^1.21.1
test_cov:
# TODO: Migrate to version declaration after the fix Git CI Action
git:
url: https://github.com/dkaera/test_cov.git
ref: issue/clean_up_deprecate
test_cov: ^1.0.1
14 changes: 4 additions & 10 deletions floor_generator/test/processor/query_method_processor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@ void main() {
QueryMethodProcessor(methodElement, [...entities, ...views], {})
.process();

final rawReturnType = await getDartTypeWithPerson('Future<List<Person>>');
final flattenedReturnType = await getDartTypeWithPerson('Person');

expect(
actual,
equals(
QueryMethod(
methodElement,
'findAllPersons',
Query('SELECT * FROM Person', []),
rawReturnType,
flattenedReturnType,
await getDartTypeWithPerson('Future<List<Person>>'),
await getDartTypeWithPerson('Person'),
[],
entities.first,
{},
Expand All @@ -65,18 +62,15 @@ void main() {
QueryMethodProcessor(methodElement, [...entities, ...views], {})
.process();

final rawReturnType = await getDartTypeWithName('Future<List<Name>>');
final flattenedReturnType = await getDartTypeWithName('Name');

expect(
actual,
equals(
QueryMethod(
methodElement,
'findAllNames',
Query('SELECT * FROM name', []),
rawReturnType,
flattenedReturnType,
await getDartTypeWithName('Future<List<Name>>'),
await getDartTypeWithName('Name'),
[],
views.first,
{},
Expand Down

0 comments on commit d566e48

Please sign in to comment.