aboutsummaryrefslogtreecommitdiff
path: root/test-dendritejs.sh
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2021-07-20 12:14:58 +0100
committerGitHub <noreply@github.com>2021-07-20 12:14:58 +0100
commit034f5ae3f1d9c01352a71f4717971f727bae57ee (patch)
treeee78cdcd804940e3321be32d322a08db68d82add /test-dendritejs.sh
parentf63068df3b9efb11f2677dd527994477b806ed19 (diff)
Add startup testing for Wasm Pinecone build (#1910)
* Only include go-sqlite3 on the relevant binaries * The driver name is always sqlite3 now * Update to matrix-org/go-sqlite3-js@e537baa * Add initial Wasm test harness * Upgrade go-sqlite3-js This fixes an error about semicolons in single statements. * Add browser-like WebSocket API for testing * Upgrade go-sqlite3-js This upgrade includes printing panic messages next to stacks. * Run for all PRs targeting any branch * Use manual Node caching * Temporarily run for all pushes * Use npm ci instead of install * Use HTTPS auth for repo packages * Match path style from build.sh * update utp Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'test-dendritejs.sh')
-rwxr-xr-xtest-dendritejs.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-dendritejs.sh b/test-dendritejs.sh
new file mode 100755
index 00000000..73e3d735
--- /dev/null
+++ b/test-dendritejs.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -eu
+
+GOOS=js GOARCH=wasm go test -v -exec "$(pwd)/test/wasm/index.js" ./cmd/dendritejs-pinecone