Skip to content

Commit eca3603

Browse files
committed
Enable getrandom/js for WASM tests in CI
1 parent 755d868 commit eca3603

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
run: cargo install wasm-pack
8181

8282
- name: Run tests default features
83-
run: wasm-pack test --node --features rust_crypto
83+
run: wasm-pack test --node --features rust_crypto,getrandom/js
8484

8585
- name: Run tests no features
86-
run: wasm-pack test --node --no-default-features --features rust_crypto
86+
run: wasm-pack test --node --no-default-features --features rust_crypto,getrandom/js

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ sha2 = { version = "0.10.7", optional = true, features = ["oid"] }
4343

4444
[target.'cfg(target_arch = "wasm32")'.dependencies]
4545
js-sys = "0.3"
46+
getrandom = "0.2"
4647

4748
[dev-dependencies]
4849
wasm-bindgen-test = "0.3.1"

0 commit comments

Comments
 (0)