Skip to content

Commit

Permalink
fix tests --attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
codekeyz committed Nov 3, 2024
1 parent 52febb7 commit 896fba4
Show file tree
Hide file tree
Showing 28 changed files with 229 additions and 1,020 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- uses: bluefireteam/melos-action@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: "3.5.3"

- name: Bootstrap
run: dart pub get
run: |
dart pub global activate melos
melos bootstrap
- name: Check formatting
run: dart format . --line-length=120 --set-exit-if-changed
Expand Down Expand Up @@ -67,29 +70,29 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- uses: bluefireteam/melos-action@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: "3.5.3"

- name: Prepare Workspace
run: |
dart pub get
dart pub global activate coverage
cd _tests_
dart run build_runner build --delete-conflicting-outputs
dart pub global activate melos
melos bootstrap
cd packages/yaroorm_test && dart run build_runner build --delete-conflicting-outputs
dart run yaroorm init
- name: Run Unit Tests
run: |
cd _tests_
cd packages/yaroorm_test
dart test --coverage=coverage --fail-fast
- name: Run E2E Tests
run: ./e2e_test.sh

- name: Combine Coverage
run: |
cd _tests_
cd packages/yaroorm_test
dart pub global run coverage:format_coverage --check-ignore --report-on=lib --lcov -o "coverage/yaroorm_lcov.info" -i ./coverage
rm -rf coverage
Expand All @@ -98,4 +101,4 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: _tests_/coverage/*_lcov.info
files: packages/yaroorm_test/coverage/*_lcov.info
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ pubspec.lock
*.sqlite
*.entity.dart
*.g.dart
!migration.g.dart
!migration.g.dart
.idea/
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/dataSources.xml

This file was deleted.

Loading

0 comments on commit 896fba4

Please sign in to comment.