Mainnet Actions #1010
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Move Test CI | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/**' | |
- 'packages/**' | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- 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 optional exclusions | |
run: | | |
exclude_dirs=() # 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 -i 100000000) | |
fi | |
done |