diff --git a/.github/workflows/language-tests.yml b/.github/workflows/language-tests.yml index d04e06c83..9d882741a 100644 --- a/.github/workflows/language-tests.yml +++ b/.github/workflows/language-tests.yml @@ -75,14 +75,10 @@ jobs: # - csharp - go # - java - # - js - # - js_webassembly - # - kotlin - # - nodejs_wasm + - js - php - python - ruby - # - swift steps: - name: Checkout @@ -154,6 +150,13 @@ jobs: with: go-version: "stable" + - name: Install wasm target + if: matrix.language == 'js' + uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # stable + with: + toolchain: stable + targets: wasm32-unknown-unknown + - name: Run language tests run: | cd $GITHUB_WORKSPACE/languages/${{ matrix.language }} diff --git a/languages/js/test.sh b/languages/js/test.sh new file mode 100644 index 000000000..e510cf78d --- /dev/null +++ b/languages/js/test.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# Build the wasm library +cd ../../crates/bitwarden-wasm +npm i -g binaryen +cargo install wasm-bindgen-cli +sh build.sh + +# Build the TS client +cd ../../languages/js/sdk-client +npm ci +npm run build + +# Actually run the tests +cd ../e2e-test +npm ci +npm run test