[ptb] adds namespaces and tests #134
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Format and Test Move Code | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| MOVE_PACKAGES_PATH: packages | |
| MVR_FALLBACK_NETWORK: testnet | |
| jobs: | |
| test-move-packages: | |
| name: Build and Test Move Packages | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.MOVE_PACKAGES_PATH }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # Pin v6.0.2 | |
| - run: curl -sSfL https://raw.githubusercontent.com/Mystenlabs/suiup/main/install.sh | sh | |
| - run: suiup install sui -y | |
| - run: sui --version | |
| - run: find . -name "Move.toml" -type f | sed 's|/Move.toml||' | xargs -I {} bash -c "sui move build --path '{}'" | |
| - run: find . -name "Move.toml" -type f | sed 's|/Move.toml||' | xargs -I {} bash -c "sui move test --path '{}'" | |
| prettier-move: | |
| name: Check Move formatting | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.MOVE_PACKAGES_PATH }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # Pin v6.0.2 | |
| - name: Use Node.js | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # Pin v6.2.0 | |
| - run: npm i @mysten/prettier-plugin-move | |
| - run: npx prettier-move -c **/*.move |