Skip to content

Commit e62f2eb

Browse files
chore(ci): add Lazer Sui contract CI (#2970)
* chore(ci): add Lazer Sui contract CI * chore(ci): speed up Lazer Sui CI by installing Sui CLI from binary * chore(ci): install Sui CLI from prebuilt binary and run tests for Lazer Sui * chore(ci): use latest stable mainnet Sui CLI (mainnet v1.53.2) for Lazer Sui tests * docs(ci): document pinned Sui CLI mainnet version and bump process in Lazer Sui workflow --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 5a2f9c6 commit e62f2eb

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Lazer Sui contract test"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- lazer/contracts/sui/**
9+
- .github/workflows/ci-lazer-sui-contract.yml
10+
11+
jobs:
12+
lazer-sui-contract-test:
13+
name: Lazer Sui contract test
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: lazer/contracts/sui/
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Install Sui CLI (binary)
21+
run: |
22+
set -euo pipefail
23+
# Using the latest stable mainnet Sui CLI binary pinned for reproducibility.
24+
# To bump: update SUI_VERSION to the latest mainnet tag (format: mainnet-vX.Y.Z).
25+
# Asset naming: sui-mainnet-vX.Y.Z-ubuntu-x86_64.tgz under tag mainnet-vX.Y.Z.
26+
CHANNEL="mainnet"
27+
SUI_VERSION="v1.53.2"
28+
ARCHIVE="sui-${CHANNEL}-${SUI_VERSION}-ubuntu-x86_64.tgz"
29+
URL="https://github.com/MystenLabs/sui/releases/download/${CHANNEL}-${SUI_VERSION}/${ARCHIVE}"
30+
echo "Downloading ${URL}"
31+
curl -fsSL -o "${ARCHIVE}" "${URL}"
32+
tar -xzf "${ARCHIVE}"
33+
BIN_PATH="$(find . -maxdepth 2 -type f -name sui | head -n 1)"
34+
chmod +x "${BIN_PATH}"
35+
sudo mv "${BIN_PATH}" /usr/local/bin/sui
36+
sui --version
37+
- name: Run tests
38+
run: sui move test

0 commit comments

Comments
 (0)