Skip to content

code refactoring

code refactoring #1

Workflow file for this run

name: Unit Tests
on:
pull_request:
merge_group:
branches: [main]
env:
CARGO_TERM_COLOR: always
GITHUB_ACTIONS: true
APTOS_NETWORK: local
ARTIFACTS_LEVEL: all
PYTH_HERMES_URL: https://hermes-beta.pyth.network
PYTH_CONTRACT_ACCOUNT: 0x0
PYTH_DEPLOYER_ACCOUNT: 0x0
PYTH_WORMHOLE: 0x0
jobs:
unit-tests:
name: Run Aptos Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 60
env:
DEFAULT_FUNDER_PRIVATE_KEY: ${{ secrets.GH_DEFAULT_FUNDER_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v4
- name: Install Aptos CLI
run: |
curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3
aptos --version # Verify that Aptos CLI is installed
- name: Run Aptos Create Local Testnet
run: |
make local-testnet &
echo $! > aptos_serve_pid.txt
- name: Wait for Aptos Local Testnet to be ready
run: sleep 20
- name: Set Local Aptos Workspace Config
run: make set-workspace-config
- name: Init Local Aptos Workspace Config
run: make init-workspace-config
- name: Run Aptos Create Profiles
run: make init-profiles
- name: Run Aptos Fund Profiles
run: make fund-profiles
- name: Run Aptos Compile All Contracts
run: make compile-all
- name: Run Aptos Test All Contracts
run: make test-all