Skip to content

Commit

Permalink
feat: add Web build test
Browse files Browse the repository at this point in the history
Signed-off-by: The one with the braid <[email protected]>
  • Loading branch information
TheOneWithTheBraid authored and krille-chan committed Apr 12, 2024
1 parent 4ba6e25 commit 87c0e7f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions web_test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
1 change: 1 addition & 0 deletions web_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a bare-bone sample project in order to ensure webdev can compile the SDK.
17 changes: 17 additions & 0 deletions web_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions web_test/web/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:matrix/matrix.dart';

Future<void> main() async {
final client = Client('web_test');
await client.init();
}

0 comments on commit 87c0e7f

Please sign in to comment.