Improve dev env & CI setup
This commit is contained in:
parent
27ad42de2b
commit
38b39101ce
1 changed files with 24 additions and 32 deletions
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
set -e
|
||||
|
||||
which cargo-insta || cargo install cargo-insta
|
||||
which wasm-pack || cargo install wasm-pack
|
||||
|
||||
node_version=$(node --version | cut -d'.' -f1 | tr -d 'v')
|
||||
if [ "$node_version" != "22" ]; then
|
||||
echo "Error: Node.js version 22 is required, but found version $node_version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wasm-pack build --target web --features wasm,console_error_panic_hook
|
||||
cargo test --verbose --features serde -- --include-ignored
|
||||
|
||||
|
|
@ -13,7 +22,8 @@ cargo test --features all
|
|||
wasm-pack test --node --features wasm,console_error_panic_hook
|
||||
|
||||
cd reconcile-js
|
||||
npm install
|
||||
npm ci
|
||||
npm run build
|
||||
npm run test
|
||||
cd -
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue