File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lazer Sui Move Build and Test
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Install Sui CLI
17+ run : |
18+ LATEST_RELEASE=$(curl -s https://api.github.com/repos/MystenLabs/sui/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
19+ echo "Installing Sui CLI version: $LATEST_RELEASE"
20+
21+ wget -q "https://github.com/MystenLabs/sui/releases/download/$LATEST_RELEASE/sui-$LATEST_RELEASE-ubuntu-x86_64.tgz"
22+
23+ tar -xzf "sui-$LATEST_RELEASE-ubuntu-x86_64.tgz"
24+ chmod +x sui
25+ sudo mv sui /usr/local/bin/
26+
27+ sui --version
28+
29+ - name : Build Sui Move contract
30+ working-directory : lazer/sui
31+ run : sui move build
32+
33+ - name : Run Sui Move tests
34+ working-directory : lazer/sui
35+ run : sui move test
36+
37+ - name : Test with verbose output
38+ working-directory : lazer/sui
39+ run : sui move test --gas-limit 100000000
You can’t perform that action at this time.
0 commit comments