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+ defaults :
12+ run :
13+ working-directory : lazer/sui
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Install Sui CLI
20+ run : |
21+ LATEST_RELEASE=$(curl -s https://api.github.com/repos/MystenLabs/sui/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
22+ echo "Installing Sui CLI version: $LATEST_RELEASE"
23+
24+ wget -q "https://github.com/MystenLabs/sui/releases/download/$LATEST_RELEASE/sui-$LATEST_RELEASE-ubuntu-x86_64.tgz"
25+
26+ tar -xzf "sui-$LATEST_RELEASE-ubuntu-x86_64.tgz"
27+ chmod +x sui
28+ sudo mv sui /usr/local/bin/
29+
30+ sui --version
31+
32+ - name : Build Sui Move contract
33+ run : sui move build
34+
35+ - name : Run Sui Move tests
36+ run : sui move test
37+
38+ - name : Test with verbose output
39+ run : sui move test --gas-limit 100000000
You can’t perform that action at this time.
0 commit comments