[codec] v4 is on the way (unblocked!) #298
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: Potatoes QA | |
| on: | |
| pull_request: | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| MOVE_PACKAGES_PATH: packages | |
| MVR_FALLBACK_NETWORK: testnet | |
| APP_PATH: app | |
| 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@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - run: cargo install --git https://github.com/Mystenlabs/suiup.git --locked | |
| - run: suiup install sui -y; suiup install mvr -y | |
| - run: sui --version; mvr --version; mvr search @potatoes | |
| - run: ls -d ./*/ | xargs -I {} bash -c "sui move build --path '{}'" | |
| - run: ls -d ./*/ | xargs -I {} bash -c "sui move test -i 10000000000 --path '{}'" | |
| prettier-move: | |
| name: Check Move formatting | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.MOVE_PACKAGES_PATH }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| - run: npm i @mysten/prettier-plugin-move | |
| - run: npx prettier-move -c **/*.move | |
| prettier-ts: | |
| name: Check TypeScript formatting | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.APP_PATH }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| - run: npm i -g prettier | |
| - run: npx -g prettier -c src/**/*.ts | |
| frontend-app-build: | |
| name: Build Web Application | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.APP_PATH }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: "pnpm" | |
| cache-dependency-path: "./${{ env.APP_PATH }}/package.json" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run build | |
| run: pnpm build |