github.com/hyperledger/aries-framework-go@v0.3.2/scripts/check_unit_wasm.sh (about) 1 #!/bin/bash 2 # 3 # Copyright SecureKey Technologies Inc. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 set -e 8 9 echo "Running $0" 10 11 # Running wasm unit test 12 # TODO Support collecting code coverage https://github.com/agnivade/wasmbrowsertest/issues/5 13 # TODO Fail CI if headless chrome isn't available https://github.com/hyperledger/aries-framework-go/issues/843 14 15 PKGS="github.com/hyperledger/aries-framework-go/component/storage/indexeddb 16 github.com/hyperledger/aries-framework-go/cmd/aries-js-worker" 17 18 cd cmd/aries-js-worker 19 PATH="$GOBIN:$PATH" GOOS=js GOARCH=wasm go test $PKGS -count=1 -exec=wasmbrowsertest -cover -timeout=10m 20