File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ paths :
4+ - lazer/contracts/aptos/**
5+ push :
6+ branches :
7+ - main
8+
9+ name : Lazer Aptos Contract
10+
11+ jobs :
12+ aptos-tests :
13+ name : Aptos tests
14+ runs-on : ubuntu-latest
15+ defaults :
16+ run :
17+ working-directory : lazer/contracts/aptos/
18+ steps :
19+ - uses : actions/checkout@v3
20+
21+ - name : Download CLI
22+ run : wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v3.1.0/aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
23+
24+ - name : Unzip CLI
25+ run : unzip aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
26+
27+ - name : Run tests
28+ run : ./aptos move test
Original file line number Diff line number Diff line change 88env :
99 PYTHON_VERSION : " 3.11"
1010 POETRY_VERSION : " 1.4.2"
11-
1211jobs :
1312 pre-commit :
1413 runs-on : ubuntu-latest
4746 with :
4847 path : ~/.cache/pypoetry
4948 key : poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
49+ # Install Aptos CLI for Lazer contract formatting and linting
50+ - name : Download Aptos CLI
51+ run : wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v3.1.0/aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
52+ - name : Install Aptos CLI
53+ run : |
54+ unzip aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
55+ sudo mv aptos /usr/local/bin/
56+ chmod +x /usr/local/bin/aptos
57+ aptos update movefmt
5058 -
uses :
pre-commit/[email protected] 5159 if : ${{ github.event_name == 'pull_request' }}
5260 with :
You can’t perform that action at this time.
0 commit comments