diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index ceba9223a..6640508ee 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -47,6 +47,11 @@ jobs: rm -r example ./scripts/prepare.sh ./scripts/test.sh + - name: Ensure SDK compiles on web + run: | + pushd web_test + dart pub get + dart run webdev build coverage_without_olm: runs-on: ubuntu-latest diff --git a/web_test/.gitignore b/web_test/.gitignore new file mode 100644 index 000000000..3a8579040 --- /dev/null +++ b/web_test/.gitignore @@ -0,0 +1,3 @@ +# https://dart.dev/guides/libraries/private-files +# Created by `dart pub` +.dart_tool/ diff --git a/web_test/README.md b/web_test/README.md new file mode 100644 index 000000000..c1528cc7a --- /dev/null +++ b/web_test/README.md @@ -0,0 +1 @@ +This is a bare-bone sample project in order to ensure webdev can compile the SDK. \ No newline at end of file diff --git a/web_test/pubspec.yaml b/web_test/pubspec.yaml new file mode 100644 index 000000000..af7b30908 --- /dev/null +++ b/web_test/pubspec.yaml @@ -0,0 +1,17 @@ +name: web_test +description: A test project for the webdev compiler. +version: 1.0.0 +publish_to: none + +environment: + sdk: ^3.2.0 + +# Add regular dependencies here. +dependencies: + matrix: + path: .. + +dev_dependencies: + build_runner: ^2.4.9 + build_web_compilers: ^4.0.10 + webdev: ^3.4.0 diff --git a/web_test/web/main.dart b/web_test/web/main.dart new file mode 100644 index 000000000..6873007d2 --- /dev/null +++ b/web_test/web/main.dart @@ -0,0 +1,6 @@ +import 'package:matrix/matrix.dart'; + +Future main() async { + final client = Client('web_test'); + await client.init(); +}