anglais/test_all.sh
neemek 42fa039daf
All checks were successful
/ test (push) Successful in 50s
basic records support
2026-08-17 17:08:24 +02:00

33 lines
610 B
Bash
Executable file

#!/bin/bash
echo '=== Building WASM lib ==='
cd wasm || exit 1
if ! GOOS=js GOARCH=wasm go build . "$@"; then
echo "=x= Had error building WASM lib =x="
exit 1
else
echo "=+= Successfully built WASM lib =+="
fi
cd ..
echo '=== Building CLI ==='
cd cli || exit 1
if ! go build . "$@"; then
echo "=x= Had error building CLI =x="
exit 1
else
echo "=+= Successfully built CLI =+="
fi
cd ..
echo "=== Running go core tests ==="
cd core || exit 1
if ! go test . "$@"; then
echo "=x= Core testing failed =x= "
exit 1
else
echo "=+= Successfully ran core tests =+="
fi
cd ..
bash ./unit_tests.sh