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