Skip to content

Check object funds withdraw sufficiency during execution #23945

Check object funds withdraw sufficiency during execution

Check object funds withdraw sufficiency during execution #23945

# Checks formatting in all examples and system packages (TBD for Sui System and Bridge)
# Uses a fixed NPM version to separate prettier-move release changes from system package
# changes.
#
# With new releases of prettier-move, update the `VERSION` in the env.
name: Move Tooling
on:
push:
branches: main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
env:
FORMATTER_VERSION: 0.4.0
jobs:
tree-sitter:
name: Tree Sitter - run tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: external-crates/move/tooling/tree-sitter
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
- name: Install tree-sitter-cli
run: cargo install tree-sitter-cli
- run: ./run-tests.sh
prettier-move-tests:
name: Move Formatter - run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
- name: Install tree-sitter-cli
run: cargo install tree-sitter-cli
- name: Use Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # pin@v6.2.0
# build the tree-sitter-move.wasm file and copy it to the prettier-move directory
- run: tree-sitter build --wasm; cp tree-sitter-move.wasm ./../prettier-move/tree-sitter-move.wasm
working-directory: external-crates/move/tooling/tree-sitter
# install the dependencies and run the tests
- run: npm i; npm test
working-directory: external-crates/move/tooling/prettier-move
prettier-move:
name: Move Formatter - check formatting
runs-on: ubuntu-latest
strategy:
matrix:
working-directory:
- examples # run on all examples
- crates/sui-framework/packages/sui-framework # sui framework
- crates/sui-framework/packages/move-stdlib # move stdlib
- crates/sui-framework/packages/sui-system # sui system
- crates/sui-framework/packages/bridge # bridge
defaults:
run:
working-directory: ${{ matrix.working-directory }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
- name: Use Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # pin@v6.2.0
- run: npm install --no-warnings @mysten/prettier-plugin-move@${{ env.FORMATTER_VERSION }}
- run: npx prettier-move -c **/*.move