diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a86da913..3801c3af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,7 @@ jobs: -p cdk --no-default-features, -p cdk --no-default-features --features wallet, -p cdk --no-default-features --features all-nuts, + -p cdk-js ] steps: - name: Checkout diff --git a/misc/scripts/check-bindings.sh b/misc/scripts/check-bindings.sh new file mode 100755 index 00000000..0dd8a922 --- /dev/null +++ b/misc/scripts/check-bindings.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# Check bindings +buildargs=( + "-p cdk-js --target wasm32-unknown-unknown" +) + +for arg in "${buildargs[@]}"; do + echo "Checking '$arg'" + + cargo build $arg + + if [[ $arg != *"--target wasm32-unknown-unknown"* ]]; + then + cargo test $arg + fi + + cargo clippy $arg -- -D warnings + + echo +done diff --git a/misc/scripts/check-crates.sh b/misc/scripts/check-crates.sh index e1e00b2f..998e4bf1 100755 --- a/misc/scripts/check-crates.sh +++ b/misc/scripts/check-crates.sh @@ -31,7 +31,6 @@ buildargs=( "-p cdk-redb" "-p cdk-redb --no-default-features --features wallet" "-p cdk-redb --no-default-features --features mint" - "-p cdk-js --no-default-features --features" ) for arg in "${buildargs[@]}"; do