Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci-lazer-sui-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Lazer Sui contract test"
on:
push:
branches:
- main
pull_request:
paths:
- lazer/contracts/sui/**
- .github/workflows/ci-lazer-sui-contract.yml

jobs:
lazer-sui-contract-test:
name: Lazer Sui contract test
runs-on: ubuntu-latest
defaults:
run:
working-directory: lazer/contracts/sui/
steps:
- uses: actions/checkout@v4
- name: Install Sui CLI (binary)
run: |
set -euo pipefail
CHANNEL="mainnet"
SUI_VERSION="v1.53.2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we document that we fix the sui version?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(aside) yep it's in the Move.lock file

ARCHIVE="sui-${CHANNEL}-${SUI_VERSION}-ubuntu-x86_64.tgz"
URL="https://github.com/MystenLabs/sui/releases/download/${CHANNEL}-${SUI_VERSION}/${ARCHIVE}"
echo "Downloading ${URL}"
curl -fsSL -o "${ARCHIVE}" "${URL}"
tar -xzf "${ARCHIVE}"
BIN_PATH="$(find . -maxdepth 2 -type f -name sui | head -n 1)"
chmod +x "${BIN_PATH}"
sudo mv "${BIN_PATH}" /usr/local/bin/sui
sui --version
- name: Run tests
run: sui move test