Skip to content

Commit

Permalink
Turn on js client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Oct 7, 2024
1 parent 7b3d2f7 commit d6f5c3e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/language-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,10 @@ jobs:
# - csharp
- go
# - java
# - js
# - js_webassembly
# - kotlin
# - nodejs_wasm
- js
- php
- python
- ruby
# - swift

steps:
- name: Checkout
Expand Down Expand Up @@ -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 }}
Expand Down
17 changes: 17 additions & 0 deletions languages/js/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d6f5c3e

Please sign in to comment.