Add diff applying error & improve CI (#32)

* Use stable rust

* Add From impls

* Revert to nightly

* Improve dev env & CI setup

* Update lock

* Add thiserror

* Add diff error

* Fix tests

* Lint

* Rename NumberOrString

* Format

* Fix lint script
This commit is contained in:
Andras Schmelczer 2025-12-06 21:54:08 +00:00 committed by GitHub
parent e03b9147df
commit 88d48afce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 195 additions and 1192 deletions

View file

@ -2,7 +2,9 @@
set -e
which wasm-pack || cargo install wasm-pack
wasm-pack build --target web --features wasm
cd reconcile-js
npm ci
npm run build

View file

@ -25,8 +25,12 @@ else
fi
echo "Bumping versions"
which cargo-set-version || cargo install cargo-edit
cargo set-version --bump $1
which wasm-pack || cargo install wasm-pack
wasm-pack build --target web --features wasm
cd reconcile-js

View file

@ -2,13 +2,18 @@
set -e
which cargo-machete || cargo install cargo-machete
cargo machete
cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged
cargo fmt --all
cd reconcile-js
npm ci
npm run format
cd ../examples/website
npm ci
npm run format
echo "Success!"

View file

@ -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 -