Skip to content

Commit

Permalink
feat(scripts/check): add check script
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Apr 16, 2022
1 parent be618c9 commit c625701
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# -*- coding: utf-8 -*-

echo "Checking before publishing…"

echo " → Updating dependencies"
cargo update --workspace && cargo upgrade --workspace || exit 1

echo " → Check & Test"
cargo check && cargo test || exit 1

echo " → Format"
cargo fmt || exit 1


pushd napi || exit 1

echo " → Upgrading N-API dependencies"
yarn upgrade -L || exit 1

echo " → Rebuild N-API"
yarn build || exit 1

popd || exit 1


echo "Done!"

0 comments on commit c625701

Please sign in to comment.