Add upgrade e2e test and fix PackageUpgradedEvent parsing #2186
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: Move CI | |
| on: | |
| pull_request: | |
| env: | |
| MOVE_PACKAGES_PATH: packages | |
| jobs: | |
| check-formatting: | |
| name: Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: MystenLabs/move-formatter-action@v1 | |
| with: | |
| prettier-plugin-move-version: "latest" | |
| working-directory: ${{ env.MOVE_PACKAGES_PATH }} | |
| test-move-packages: | |
| name: Build & Test | |
| 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 | |
| - run: ls -d ./*/ | xargs -I {} bash -c "sui move build --path '{}'" | |
| - run: ls -d ./*/ | xargs -I {} bash -c "sui move test --path '{}'" |