Skip to content

Commit

Permalink
Merge pull request #64 from MystenLabs/tlee/suins-move-ci
Browse files Browse the repository at this point in the history
Move Test CI
  • Loading branch information
leecchh committed Mar 25, 2024
2 parents 1e1b65c + 91b8dfc commit 2854e08
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/move_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Move Test CI

on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
- name: Install Sui using Homebrew
run: brew install sui

- name: Run move tests in all package subdirectories, with exclusions
run: |
exclude_dirs=("day_one") # Add excluded directories to this array
for dir in packages/*; do
dir_name=$(basename "$dir")
if [[ ! " ${exclude_dirs[@]} " =~ " ${dir_name} " ]] && [ -d "$dir" ]; then
echo "Running sui move test in $dir"
(cd "$dir" && sui move test)
fi
done
2 changes: 1 addition & 1 deletion packages/day_one/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
published-at="0xbf1431324a4a6eadd70e0ac6c5a16f36492f255ed4d011978b2cf34ad738efe6"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "2d985a3" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "2d985a3", override=true }

suins = { local = "../suins" }

Expand Down
2 changes: 1 addition & 1 deletion packages/managed_names/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "managed_names"
version = "0.0.1"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet" }
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet", override=true }
suins = { local = "../suins" }

[addresses]
Expand Down

0 comments on commit 2854e08

Please sign in to comment.