File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,19 +20,15 @@ jobs:
2020 echo "$HOME/.local/bin" >> $GITHUB_PATH
2121 aptos --version
2222
23- - name: Static sanity checks
23+ - name : Static sanity checks
2424 run : |
2525 set -euo pipefail
2626 # 1) нет плейсхолдеров {{ADDR}} в коде проектов (игнорим build/, vendor/, .github/)
27- if grep -RIn '{{ADDR}}' mytoken escrow simplenft minimarket \
28- --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github; then
27+ if grep -RIn --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github '{{ADDR}}' mytoken escrow simplenft minimarket; then
2928 echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
30-
31- # 2) в ТЕСТАХ не должно быть `use std::` (только 0x1::)
32- if grep -RIn 'use std::' mytoken/tests escrow/tests simplenft/tests minimarket/tests \
33- --include='*.move' --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github; then
29+ # 2) в тестах не должно быть `use std::` (используем 0x1::)
30+ 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
3431 echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
3532
36-
3733 - name : Repo-wide build & tests
3834 run : ./tools/check.sh
You can’t perform that action at this time.
0 commit comments