Skip to content

Commit d31f1a9

Browse files
committed
Update CI
1 parent 37f0c51 commit d31f1a9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/actions/coverage/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ runs:
3333
with:
3434
path: './${{ inputs.directory }}/coverage/lcov.info'
3535
min_coverage: ${{ inputs.min-coverage }}
36-
exclude: 'lib/src/native/**/binding.dart lib/src/native/java/**/*.dart lib/src/native/cocoa/**/*.dart lib/src/native/sentry_native_channel.dart'

.github/actions/flutter-test/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ runs:
4747
4848
if ${{ (matrix.target == 'linux' && matrix.sdk == 'stable' && 'true') || 'false' }} ; then
4949
$testCmd --coverage
50+
if [[ "$INPUT_DIRECTORY" == 'packages/flutter' ]]; then
51+
# Remove native binding/bridge files from coverage.
52+
# These FFI/JNI bindings are currently not unit tested due to limitations of FFI/JNI mocking.
53+
dart run remove_from_coverage -f coverage/lcov.info -r 'binding.dart'
54+
dart run remove_from_coverage -f coverage/lcov.info -r 'lib/src/native/sentry_native_channel.dart'
55+
dart run remove_from_coverage -f coverage/lcov.info -r '^lib/src/native/java/.*\.dart$'
56+
dart run remove_from_coverage -f coverage/lcov.info -r '^lib/src/native/cocoa/.*\.dart$'
57+
fi
5058
else
5159
$testCmd
5260
fi

0 commit comments

Comments
 (0)