Skip to content

Support V2 Positional Fields & Bug Fixes #55

Support V2 Positional Fields & Bug Fixes

Support V2 Positional Fields & Bug Fixes #55

Workflow file for this run

name: Move (Aptos) Tree Sitter Parser Test
on:
push:
branches:
- main
pull_request:
jobs:
test-aptos:
runs-on: ubuntu-latest
steps:
- name: Checkout itself
uses: actions/checkout@v4
# Testing repositories
- name: Checkout `aptos-labs/aptos-core`
uses: actions/checkout@v4
with:
repository: aptos-labs/aptos-core
path: test/repos/aptos-labs/aptos-core
- name: Checkout `wormhole-foundation/wormhole`
uses: actions/checkout@v4
with:
repository: wormhole-foundation/wormhole
path: test/repos/wormhole-foundation/wormhole
- name: Checkout `pancakeswap/pancake-contracts-move`
uses: actions/checkout@v4
with:
repository: pancakeswap/pancake-contracts-move
path: test/repos/pancakeswap/pancake-contracts-move
# Setup environment
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: sudo apt update && sudo apt install -y gcc
- run: npm install -g tree-sitter-cli
# Configure and generate tree-sitter parser
- run: tree-sitter init-config
- run: tree-sitter generate
# Run tests
- run: |
python batch-test.py \
test/repos/aptos-labs/aptos-core/aptos-move \
test/repos/wormhole-foundation/wormhole/aptos \
test/repos/pancakeswap/pancake-contracts-move
# Test decompiled Move modules
test-decompiled:
needs: [test-aptos]
runs-on: ubuntu-latest
steps:
- name: Checkout itself
uses: actions/checkout@v4
- name: Checkout `aptos-labs/move-modules`
uses: actions/checkout@v4
with:
repository: aptos-labs/move-modules
path: test/repos/aptos-labs/move-modules
token: ${{ secrets.MOVEMODULES }}
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: sudo apt update && sudo apt install -y gcc
- run: npm install -g tree-sitter-cli
- run: tree-sitter init-config
- run: tree-sitter generate
- run: python batch-test.py test/repos/aptos-labs/move-modules/mainnet