Skip to content

Commit 212c69c

Browse files
authored
Update move-ci.yml
1 parent f1eb257 commit 212c69c

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/move-ci.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,30 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install Aptos CLI
18-
env:
19-
GH_TOKEN: ${{ github.token }} # даём токен скрипту (снимает rate limit)
20-
GITHUB_TOKEN: ${{ github.token }} # на всякий — оба названия переменных
21-
run: |
22-
set -euo pipefail
23-
# ретрай с экспоненциальной задержкой, если вдруг API снова вернёт 403
24-
for i in 0 1 2 3; do
25-
if curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3; then
26-
break
27-
fi
28-
echo "Install failed, retry in $((2**i))s..."
29-
sleep $((2**i))
30-
done
31-
echo "$HOME/.local/bin" >> $GITHUB_PATH
32-
aptos --version
18+
env:
19+
GH_TOKEN: ${{ github.token }} # токен для снятия rate limit
20+
GITHUB_TOKEN: ${{ github.token }}
21+
run: |
22+
set -euo pipefail
23+
# ретрай, если API вернёт 403
24+
for i in 0 1 2 3; do
25+
if curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3; then
26+
break
27+
fi
28+
echo "Install failed, retry in $((2**i))s..."
29+
sleep $((2**i))
30+
done
31+
echo "$HOME/.local/bin" >> $GITHUB_PATH
32+
aptos --version
33+
3334
- name: Static sanity checks
3435
run: |
3536
set -euo pipefail
36-
# 1) нет плейсхолдеров {{ADDR}} в коде проектов (игнорим build/, vendor/, .github/)
37-
if grep -RIn --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github '{{ADDR}}' mytoken escrow simplenft minimarket; then
37+
# 1) нет плейсхолдеров {{ADDR}} (игнорим build/, vendor/, .github/)
38+
if grep -RIn --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github '{{ADDR}}' mytoken escrow simplenft minimarket paysplit vesting; then
3839
echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
3940
# 2) в тестах не должно быть `use std::` (используем 0x1::)
40-
if grep -RIn --include='*.move' --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github 'use std::' mytoken/tests escrow/tests simplenft/tests minimarket/tests; then
41+
if grep -RIn --include='*.move' --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github 'use std::' mytoken/tests escrow/tests simplenft/tests minimarket/tests paysplit/tests vesting/tests; then
4142
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
4243
4344
- name: Repo-wide build & tests

0 commit comments

Comments
 (0)