-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (35 loc) · 1.09 KB
/
move_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 exclusions
run: |
exclude_dirs=(governance) # 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