Skip to content

Commit fe0ff51

Browse files
committed
chore: add ci
1 parent 612f95e commit fe0ff51

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)