File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,10 +23,14 @@ jobs:
2323 - name : Static sanity checks
2424 run : |
2525 set -euo pipefail
26- # 1) плейсхолдеров {{ADDR}} быть не должно (игнорим build/ и vendor/)
27- ! grep -RIn '{{ADDR}}' -- . --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found {{ADDR}} placeholders' && exit 1)
28- # 2) в ТЕСТАХ запрещаем std:: (в сорцах допустимо, если есть [addresses] std="0x1")
29- ! grep -RIn 'use std::' -- */tests --include='*.move' --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found std:: imports in tests; use 0x1::' && exit 1)
26+ # 1) нет плейсхолдеров {{ADDR}} (игнорим build/ и vendor/)
27+ if grep -RIn --exclude-dir=build --exclude-dir=vendor '{{ADDR}}' .; then
28+ echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
29+ # 2) в ТЕСТАХ не должно быть use std:: (игнорим build/ и vendor/)
30+ if ls */tests/*.move >/dev/null 2>&1; then
31+ if grep -RIn --include='*.move' --exclude-dir=build --exclude-dir=vendor 'use std::' */tests; then
32+ echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
33+ fi
3034
3135 - name : Repo-wide build & tests
32- run : ./tools/check.s
36+ run : ./tools/check.sh
You can’t perform that action at this time.
0 commit comments