Skip to content

Commit 6d40d83

Browse files
committed
Run dart tests on github actions.
1 parent 2f13b68 commit 6d40d83

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
submodules: true
18+
- uses: dart-lang/setup-dart@v1
1819

1920
- name: Build lib
2021
run: |
@@ -37,3 +38,8 @@ jobs:
3738
- name: Check loadable extension
3839
run: |
3940
./target/release/sqlite3 ":memory:" ".load ./target/release/libpowersync" "select powersync_rs_version()"
41+
42+
- name: Run dart-based tests
43+
run: |
44+
cd dart
45+
dart test

dart/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dart Tests
2+
3+
This folder contains tests written in Dart, as a convenient higher-level language.
4+
5+
The tests loads the compiled debug library. Before testing, build first using:
6+
7+
```sh
8+
cargo build -p powersync_loadable
9+
```
10+
11+
Then test here:
12+
13+
```sh
14+
dart test
15+
```

0 commit comments

Comments
 (0)