@@ -15,29 +15,30 @@ jobs:
15
15
uses : actions/checkout@v4
16
16
17
17
- 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
+
33
34
- name : Static sanity checks
34
35
run : |
35
36
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
38
39
echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
39
40
# 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
41
42
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
42
43
43
44
- name : Repo-wide build & tests
0 commit comments