Skip to content

Commit 7a24814

Browse files
committed
More CI fixes
1 parent 7b87f1d commit 7a24814

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/actions/dart_analysis_and_tests/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ runs:
3333
- name: Run unit tests and prepare coverage
3434
shell: bash
3535
run: |
36-
dart test --coverage
36+
dart pub global activate coverage
37+
dart run test --coverage=coverage
38+
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
3739
# Extract directory name for artifact naming
3840
echo "DIR_NAME=$(basename "${{ inputs.working-directory }}")" >> $GITHUB_ENV
3941
working-directory: ${{ inputs.working-directory }}

.github/actions/flutter_analysis_and_tests/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ runs:
3232

3333
- name: Run unit tests and prepare coverage
3434
shell: bash
35+
if: '[ -d "${{ inputs.working-directory }}/test" ]'
3536
run: |
3637
flutter test --coverage
3738
# Extract directory name for artifact naming

0 commit comments

Comments
 (0)