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,11 +20,13 @@ jobs:
2020 echo "$HOME/.local/bin" >> $GITHUB_PATH
2121 aptos --version
2222
23- - name : Static sanity checks
24- run : |
25- set -euo pipefail
26- ! grep -RIn "{{ADDR}}" -- . || (echo "ERROR: found {{ADDR}} placeholders" && exit 1)
27- ! grep -RIn "use std::" -- . || (echo "ERROR: found std:: imports; use 0x1::" && exit 1)
23+ - name : Static sanity checks
24+ run : |
25+ 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)
2830
2931 - name : Repo-wide build & tests
30- run: ./tools/check.sh
32+ run : ./tools/check.s
You can’t perform that action at this time.
0 commit comments