automerge/scripts/ci/wasm_tests
alexjg 5629a7bec4
Various CI script fixes (#501)
Some of the scripts in scripts/ci were not reliable detecting the path
they were operating in. Additionally the deno_tests script was not
correctly picking up the ROOT_MODULE environment variable. Add more
robust path handling and fix the deno_tests script.
2023-01-19 15:38:27 +00:00

7 lines
331 B
Text
Executable file

# see https://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
THIS_SCRIPT="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
WASM_PROJECT=$THIS_SCRIPT/../../rust/automerge-wasm;
yarn --cwd $WASM_PROJECT install;
yarn --cwd $WASM_PROJECT build;
yarn --cwd $WASM_PROJECT test;