diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index cf2b71069c..236a8546eb 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -29,6 +29,7 @@ jobs: defaults: run: shell: bash + working-directory: flutter strategy: fail-fast: false matrix: @@ -77,21 +78,23 @@ jobs: - run: flutter upgrade - name: Pub Get - run: | - cd flutter - flutter pub get + run: flutter pub get - - name: Test chrome + - name: Test web (JS) if: matrix.target == 'web' run: | - cd flutter flutter test --platform chrome --test-randomize-ordering-seed=random --exclude-tags canvasKit flutter test --platform chrome --test-randomize-ordering-seed=random --tags canvasKit --web-renderer canvaskit + - name: Test web (WASM) + if: matrix.target == 'web' + run: | + flutter test --platform chrome --wasm --test-randomize-ordering-seed=random --exclude-tags canvasKit + flutter test --platform chrome --wasm --test-randomize-ordering-seed=random --tags canvasKit --web-renderer canvaskit + - name: Test VM with coverage if: matrix.target == 'linux' || matrix.target == 'macos' || matrix.target == 'windows' run: | - cd flutter flutter test --coverage --test-randomize-ordering-seed=random dart run remove_from_coverage -f coverage/lcov.info -r 'binding.dart' @@ -111,11 +114,11 @@ jobs: exclude: 'lib/src/native/cocoa/binding.dart' - name: Build ${{ matrix.target }} + working-directory: flutter/example run: | flutter config --enable-windows-desktop flutter config --enable-macos-desktop flutter config --enable-linux-desktop - cd flutter/example TARGET=${{ matrix.target }} flutter pub get case $TARGET in diff --git a/flutter/test/integrations/flutter_error_integration_test.dart b/flutter/test/integrations/flutter_error_integration_test.dart index 73d92565c2..40a8ef7c36 100644 --- a/flutter/test/integrations/flutter_error_integration_test.dart +++ b/flutter/test/integrations/flutter_error_integration_test.dart @@ -82,6 +82,10 @@ void main() { expect(event.contexts['flutter_error_details']['context'], 'thrown while handling a gesture'); expect(event.contexts['flutter_error_details']['information'], 'foo bar'); + }, onPlatform: { + // TODO stacktrace parsing for wasm is not implemented yet + // https://github.com/getsentry/sentry-dart/issues/1480 + 'wasm': Skip('WASM stack trace parsing not implemented yet'), }); test('captures error with long FlutterErrorDetails.information', () async { @@ -115,6 +119,10 @@ void main() { 'thrown while handling a gesture'); expect(event.contexts['flutter_error_details']['information'], 'foo bar\nHello World!'); + }, onPlatform: { + // TODO stacktrace parsing for wasm is not implemented yet + // https://github.com/getsentry/sentry-dart/issues/1480 + 'wasm': Skip('WASM stack trace parsing not implemented yet'), }); test('captures error with no FlutterErrorDetails', () async {